Package org.apache.tuscany.core.system.annotation

Examples of org.apache.tuscany.core.system.annotation.ParentContext


*/
public class ParentContextProcessor extends ImplementationProcessorSupport {

    @Override
    public void visitMethod(Method method, ComponentType type) throws ConfigurationLoadException {
        ParentContext annotation = method.getAnnotation(ParentContext.class);
        if (annotation != null) {
            if (!Modifier.isPublic(method.getModifiers())) {
                InvalidSetterException e = new InvalidSetterException("ParentContext setter method is not public");
                e.setIdentifier(method.toString());
                throw e;
View Full Code Here


    }

    @Override
    public void visitField(Field field, ComponentType type) throws ConfigurationLoadException {
        int modifiers = field.getModifiers();
        ParentContext annotation = field.getAnnotation(ParentContext.class);
        if (annotation != null) {
            if (!Modifier.isPublic(modifiers) && !Modifier.isProtected(modifiers)) {
                InvalidSetterException e = new InvalidSetterException("ParentContext field is not public or protected");
                e.setIdentifier(field.getName());
                throw e;
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.system.annotation.ParentContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.