Package org.milyn.annotation

Examples of org.milyn.annotation.AnnotatedClass


  /**
   *
   */
  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) {
        if(method.isAnnotationPresent(Insert.class)) {

          analyzeInsertMethod(method);
View Full Code Here


      return new InterfaceDaoInvoker(dao);

    } else {

      final AnnotatedClass annotatedClass =  AnnotationManager.getAnnotatedClass(dao.getClass());

      if(annotatedClass.isAnnotationPresent(org.milyn.scribe.annotation.Dao.class)) {

        final AnnotatedDaoRuntimeInfoFactory repository = getAnnotatedDAORuntimeInfoRepository(objectStore);

        return new AnnotatedDaoInvoker(dao, repository.create(dao.getClass()));
View Full Code Here

TOP

Related Classes of org.milyn.annotation.AnnotatedClass

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.