public class RequestAttributeFactory implements InjectionHandlerFactory
{
public InjectionHandler createInjectionHandler(Annotation annotation, Class clazz, PropertyDescriptor propertyDescriptor)
{
InjectRequestAttribute input = (InjectRequestAttribute) annotation;
String attributeName = AnnotationFactoryUtils.getAttributeName(propertyDescriptor.getName(), input.name());
Class autoCreateClass = input.autoCreate() ? propertyDescriptor.getPropertyType() : null;
RequestAttributeInjectionHandler handler = new RequestAttributeInjectionHandler(attributeName, autoCreateClass);
return handler;
}