Package com.codingcrayons.aspectfaces.exceptions

Examples of com.codingcrayons.aspectfaces.exceptions.AnnotationNotRegisteredException


    }

    if (context.getOrderAnnotation() != null && context.getOrderAnnotation().equals(provider.getName())) {
      OrderJoinPoint orderable = AnnotationContainer.getInstance().getOrderableAnnotation(provider.getName());
      if (orderable == null) {
        throw new AnnotationNotRegisteredException("Annotation descriptor for " + provider.getName()
          + " annotation is not registered!");
      }
      metaProperty.setOrder(orderable.getOrder(provider));
    }
  }
View Full Code Here


  private static boolean verifyRoles(String annotationName, AnnotationProvider provider, String[] roles)
    throws AnnotationNotRegisteredException {

    SecurityJoinPoint roleable = AnnotationContainer.getInstance().getRoleableAnnotation(annotationName);
    if (roleable == null) {
      throw new AnnotationNotRegisteredException("Annotation descriptor for " + annotationName
        + " annotation is not registered!");
    }
    return Arrays.intersects(roleable.getRoles(provider), roles);
  }
View Full Code Here

TOP

Related Classes of com.codingcrayons.aspectfaces.exceptions.AnnotationNotRegisteredException

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.