if (factoryClass != null)
{
hasFactory = true;
InjectionHandlerFactory factory = ReflectHelper.createInstance(factoryClass.value(),
InjectionHandlerFactory.class);
if (wrapper == null)
{
InjectionSetter inputSetter = createSetter(actionClass, m);
PropertyDescriptor propertyDescriptor = BeanUtils.findPropertyForMethod(m);
if (propertyDescriptor == null)
{
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);
}