Package org.gap.jseed.annotation

Examples of org.gap.jseed.annotation.Advice


        for (Class<? extends Annotation> methodAnnotion : annotations.keySet()) {
          if (methodAnnotion.isInstance(eachAnnot)) {
            Class<? extends InvocationHandler> handler = annotations.get(methodAnnotion);
            String propertyName = BeanUtil.getPropertyName(eachMethod.getName() + "_" + handler.getSimpleName());
            injectField(propertyName, implementation, handler);
            Advice advice = methodAnnotion.getAnnotation(Advice.class);
            switch (advice.value()) {
            case METHOD:
              addMethodBody(implementation, eachMethod, propertyName);
              break;
            case BEFORE:
              CtMethod method = addCallSuper(implementation, eachMethod);
View Full Code Here

TOP

Related Classes of org.gap.jseed.annotation.Advice

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.