Stripes

Provide a mechanism to make it easier to override components in stripes without editing web.xml

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: Release 1.5
  • Component/s: None
  • Labels:
    None

Description

It'd be nice to be able to override parts of Stripes (TypeConverterFactory, TypeConverters, ActionResolver etc.) without having to write more and more init-params in the web.xml. One way to do this would be to require the user to specify a single option like:
stripes.extensions.package=com.myco.app.stripes.ext

We could then scan all the classes in this package and do "sensible" things with them, e.g.
if they implement a configurable component, use it instead of the default one (e.g. ActionResolver)
if they implement TypeConverter or Formatter then wire them in (have to figure out how/when to use them, e.g. for which classes)
if they implement Interceptor then add them to the interceptor list

etc.

Activity

Hide
Aaron Porter added a comment - 28/Dec/07 1:05 PM

svn revision 734

Show
Aaron Porter added a comment - 28/Dec/07 1:05 PM svn revision 734

People

Vote (1)
Watch (0)

Dates

  • Created:
    16/Nov/07 1:52 PM
    Updated:
    04/Jan/11 3:10 PM
    Resolved:
    28/Dec/07 1:05 PM