Package org.strecks.bind.factory

Examples of org.strecks.bind.factory.BindFactoryClass


      for (Annotation annotation : annotations)
      {

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

        if (factoryClass != null)
        {

          checkMethodIsGetter(getterMethod, annotationType);

          String getterName = getterMethod.getName();
          String thisPropertyName = ReflectHelper.getPropertyName(getterName);

          // check for an explicitly named converter
          ConverterReader converterReader = new ConverterReader();
          Converter explicitConverter = converterReader.readConverter(getterMethod);

          // create factory
          BindHandlerFactory factory = ReflectHelper.createInstance(factoryClass.value(),
              BindHandlerFactory.class);

          // use factory to create handler and register this
          BindHandler handler = factory.createHandler(annotation, getterMethod, explicitConverter,
              conversionHandler);
View Full Code Here

TOP

Related Classes of org.strecks.bind.factory.BindFactoryClass

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.