Package org.strecks.source.annotation

Examples of org.strecks.source.annotation.BeanSourceReaderClass


    boolean found = false;

    for (Annotation annotation : annotations)
    {
      Class<? extends Annotation> annotationType = annotation.annotationType();
      BeanSourceReaderClass beanSourceReaderClass = annotationType.getAnnotation(BeanSourceReaderClass.class);

      if (beanSourceReaderClass != null)
      {
        if (found == true)
        {
          throw new ApplicationConfigurationException(
              "Action bean class "
                  + actionClass.getName()
                  + " has more than one bean source annotation, that is, annotations which themselves use the annotation "
                  + BeanSourceReaderClass.class.getName());
        }

        BeanSourceReader beanSourceReader = ReflectHelper.createInstance(beanSourceReaderClass.value(),
            BeanSourceReader.class);
        beanSource = beanSourceReader.readBeanSource(actionClass, annotation);

        found = true;
      }
View Full Code Here

TOP

Related Classes of org.strecks.source.annotation.BeanSourceReaderClass

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.