|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configuration
Type safe interface for accessing configuration information used to configure Stripes. All Configuration implementations are handed a reference to the BootstrapPropertyResolver to enable them to find initial values and fully initialize themselves. Through the BootstrapPropertyResolver implementations also get access to the ServletConfig of the DispatcherServlet which can be used for locating configuration values if desired.
Implementations of Configuration should fail fast. At initialization time they should detect as many failures as possible and raise an exception. Since exceptions in Configuration are considered fatal there are no exception specifications and implementations are expected to throw runtime exceptions with plenty of details about the failiure and its suspected cause(s).
| Method Summary | |
|---|---|
ActionBeanContextFactory |
getActionBeanContextFactory()
Returns an instance of an action bean context factory which will used throughout Stripes to manufacture ActionBeanContext objects. |
ActionBeanPropertyBinder |
getActionBeanPropertyBinder()
Returns an instance of ACtionBeanPropertyBinder that is responsible for binding all properties to all ActionBeans at runtime. |
ActionResolver |
getActionResolver()
Returns an instance of ActionResolver that will be used by Stripes to lookup and resolve ActionBeans. |
BootstrapPropertyResolver |
getBootstrapPropertyResolver()
Implementations should implement this method to simply return a reference to the BootstrapPropertyResolver passed to the Configuration at initialization time. |
FormatterFactory |
getFormatterFactory()
Returns an instance of FormatterFactory that is responsible for creating Formatter objects for converting rich types into Strings for display on pages. |
LocalePicker |
getLocalePicker()
Returns an instance of LocalePicker that is responsible for choosing the Locale for each request that enters the system. |
LocalizationBundleFactory |
getLocalizationBundleFactory()
Returns an instance of LocalizationBundleFactory that is responsible for looking up resource bundles for the varying localization needs ot a web application. |
TagErrorRendererFactory |
getTagErrorRendererFactory()
Returns an instance of a tag error renderer factory for building custom error renderers for form input tags that have field errors. |
TypeConverterFactory |
getTypeConverterFactory()
Returns an instance of TypeConverterFactory that is responsible for providing lookups and instances of TypeConverters for the validation system. |
void |
init()
Called by the DispatcherServlet to initialize the Configuration. |
void |
setBootstrapPropertyResolver(BootstrapPropertyResolver resolver)
Supplies the Configuration with a BootstrapPropertyResolver. |
| Method Detail |
|---|
void setBootstrapPropertyResolver(BootstrapPropertyResolver resolver)
resolver - a BootStrapPropertyResolver which can be used to find any values required
by the Configuration in order to initializevoid init()
BootstrapPropertyResolver getBootstrapPropertyResolver()
ActionResolver getActionResolver()
ActionBeanPropertyBinder getActionBeanPropertyBinder()
TypeConverterFactory getTypeConverterFactory()
LocalizationBundleFactory getLocalizationBundleFactory()
LocalePicker getLocalePicker()
FormatterFactory getFormatterFactory()
TagErrorRendererFactory getTagErrorRendererFactory()
ActionBeanContextFactory getActionBeanContextFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||