Package org.strecks.injection.annotation

Examples of org.strecks.injection.annotation.InjectRequestParameter.converter()


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

    InjectRequestParameter input = (InjectRequestParameter) annotation;

    Class converterClass = input.converter();
    Converter converter = RequestParameterFactory.createConverter(propertyDescriptor.getPropertyType(), converterClass);
    String parameterName = AnnotationFactoryUtils.getAttributeName(propertyDescriptor.getName(), input.name());
    boolean required = input.required();

    // make sure that converter has String generic type
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.