Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To register a customized ObjectFactory, add or edit an entry in struts.properties

Code Block

 struts.objectFactory=foo.bar.MyCustomObjectFactory

where foo.bar.MyCustomObjectFactory is the custom object factory.

Code Block

public class MyObjectFactory extends ObjectFactory {
    .....
}

...

  • ResultFactory - dedicated interfaces used by ObjectFactory to create Result Types
    • StrutsResultFactory it's internal implementation which checks if Result implements ParamNameAwareResult interface to restrict names of parameters set on the instance of Result, see Result Types for more info.
  • ActionFactory - dedicated interface used by ObjectFactory to actions
  • InterceptorFactory - dedicated interface used by ObjectFactory to create interceptors
  • ValidatorFactory - dedicated interface used by ObjectFactory to create validators
  • ConverterFactory - dedicated interface used by ObjectFactory to create instances of TypeConverter
  • UnknownHandlerFactory - dedicated interfaces used by ObjectFactory to create instances of Unknown Handlers

Next: ActionMapper