Package org.milyn.scribe

Examples of org.milyn.scribe.AnnotationNotFoundException


  private void analyze() {

    AnnotatedClass annotatedClass =  AnnotationManager.getAnnotatedClass(daoClass);

    if(annotatedClass.getAnnotation(Dao.class) == null) {
      throw new AnnotationNotFoundException("The class '"+ daoClass.getName() +"' isn't annotated with the '"+ Dao.class.getName() +"' annotation. Only class annotated with that annotation can be used as annotated DAO.");
    }

    AnnotatedMethod[] annotatedMethods = annotatedClass.getAnnotatedMethods();
    for(final AnnotatedMethod method : annotatedMethods) {
      if(method.getAllAnnotations().length > 0) {
View Full Code Here

TOP

Related Classes of org.milyn.scribe.AnnotationNotFoundException

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.