Package org.strecks.injection.handler

Examples of org.strecks.injection.handler.InjectionHandler


  public InjectionHandler createInjectionHandler(Annotation annotation, Class clazz, PropertyDescriptor propertyDescriptor)
  {

    InjectSpringBean input = (InjectSpringBean) annotation;
    String beanName = AnnotationFactoryUtils.getAttributeName(propertyDescriptor.getName(), input.name());
    InjectionHandler handler = new SpringBeanInjectionHandler(beanName);
    return handler;

  }
View Full Code Here


              throw new ApplicationConfigurationException("Method " + m.getName() + " has no valid property descriptor. Is this a valid property");
            }
           
            wrapper = new InjectionWrapper(inputSetter, propertyDescriptor);
          }
          InjectionHandler handler = factory.createInjectionHandler(annotation, actionClass, wrapper
              .getPropertyDescriptor());
          wrapper.addHandler(handler);

        }
View Full Code Here

          + " whose conversion source type is " + sourceType.getName() + ", and not "
          + String.class.getName());
     
    }

    InjectionHandler handler = new RequestParameterInjectionHandler(parameterName, converter, required);
    return handler;

  }
View Full Code Here

  public InjectionHandler createInjectionHandler(Annotation annotation, Class clazz, PropertyDescriptor propertyDescriptor)
  {

    InjectRedirectParameter input = (InjectRedirectParameter) annotation;
    String parameterName = AnnotationFactoryUtils.getAttributeName(propertyDescriptor.getName(), input.name());
    InjectionHandler handler = new RedirectParameterInjectionHandler(parameterName);
    return handler;

  }
View Full Code Here

TOP

Related Classes of org.strecks.injection.handler.InjectionHandler

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.