Package com.director.core.annotation

Examples of com.director.core.annotation.DirectMethod


      try {
         Class actionClass = Class.forName(className);
         Method[] methods = actionClass.getMethods();
         for(Method method : methods) {
            if(method.isAnnotationPresent(DirectMethod.class)) {
               DirectMethod directMethod = method.getAnnotation(DirectMethod.class);
               String methodName = StringUtils.isBlank(directMethod.name()) ? method.getName() : directMethod.name();
               this.registerMethod(directNameSpace, directActionName, methodName, actionClass, method);
            }
         }
      } catch(Exception e) {
         throw new DirectException("Error registering class: " + className + " with actionName: " + directActionName, e);
View Full Code Here


                               String directActionName,
                               String directMethodName,
                               Class actionClass,
                               Method method) throws Exception {

      DirectMethod directMethod = method.getAnnotation(DirectMethod.class);
      ProviderType type = directMethod.providerType();
      String providerId = type.getProviderId(directNameSpace);
      Provider provider = this.getProvider(directNameSpace, type, providerId);

      String aName = (directActionName == null) ? actionClass.getSimpleName() : directActionName;
      String mName = (directMethodName == null) ? method.getName() : directMethodName;
View Full Code Here

TOP

Related Classes of com.director.core.annotation.DirectMethod

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.