Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
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.
svn revision 734