Examples of PetiteInitMethod


Examples of jodd.petite.meta.PetiteInitMethod

    MethodDescriptor[] allMethods = cd.getAllMethodDescriptors();

    for (MethodDescriptor methodDescriptor : allMethods) {
      Method method = methodDescriptor.getMethod();

      PetiteInitMethod petiteInitMethod = method.getAnnotation(PetiteInitMethod.class);
      if (petiteInitMethod == null) {
        continue;
      }
      if (method.getParameterTypes().length > 0) {
        throw new PetiteException("Arguments are not allowed for Petite init method: " + type.getName() + '#' + method.getName());
      }
      int order = petiteInitMethod.order();
      list.add(new InitMethodPoint(method, order, petiteInitMethod.invoke()));
    }

    InitMethodPoint[] methods;

    if (list.isEmpty()) {
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.