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

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


*/
public class MonitorProcessor extends ImplementationProcessorSupport {

    @Override
    public void visitMethod(Method method, ComponentType type) throws ConfigurationLoadException {
        Monitor annotation = method.getAnnotation(Monitor.class);
        if (annotation != null) {
            if (!Modifier.isPublic(method.getModifiers())) {
                InvalidSetterException e = new InvalidSetterException("Monitor 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();
        Monitor annotation = field.getAnnotation(Monitor.class);
        if (annotation != null) {
            if (!Modifier.isPublic(modifiers) && !Modifier.isProtected(modifiers)) {
                InvalidSetterException e = new InvalidSetterException("Monitor 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.Monitor

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.