Examples of ConverterFactoryClass


Examples of org.strecks.converter.factory.ConverterFactoryClass

    for (Annotation annotation : annotations)
    {

      Class<? extends Annotation> annotationType = annotation.annotationType();
      ConverterFactoryClass factoryClass = annotationType.getAnnotation(ConverterFactoryClass.class);

      if (factoryClass != null)
      {

        if (found)
        {
          throw new ApplicationConfigurationException(
              "Only one converter annotation may be placed in method " + method.getName()
                  + "() in class " + method.getDeclaringClass().getName());
        }

        ConverterFactory factory = ReflectHelper.createInstance(factoryClass.value(),
            ConverterFactory.class);
        converter = factory.createConverter(annotation);
        found = true;

      }
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.