Package com.director.core.annotation

Examples of com.director.core.annotation.DirectReturn.strategy()


   private void extractStrategy() {
      Annotation[] annotations = this.method.getDeclaredAnnotations();
      for(Annotation annotation : annotations) {
         if (annotation.annotationType().isAnnotationPresent(DirectReturn.class)){
            DirectReturn directReturn = annotation.annotationType().getAnnotation(DirectReturn.class);
            Class<? extends ReturnDataStrategy> strategyClass = directReturn.strategy();
            try {
               this.returnDataStrategy = strategyClass.getConstructor(annotation.annotationType()).newInstance(annotation);
               return;
            } catch(Exception e) {
               throw new DirectException(e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.