|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.stripes.config.DefaultConfiguration
public class DefaultConfiguration
Centralized location for defaults for all Configuration properties. This implementation does not lookup configuration information anywhere! It returns hard-coded defaults that will result in a working system without any user intervention.
The DefaultConfiguration is designed to be easily extended as needed. Subclasses should simply implement their own init() method which instantiates the ConfigurableComponents in the manner required and then call super.setXXX() to set them on the configuration. The last step should be to call super.init(), which will allow the DefaultConfiguration to fill in any implementations that were not set by the child class.
| Constructor Summary | |
|---|---|
DefaultConfiguration()
|
|
| Method Summary | |
|---|---|
ActionBeanContextFactory |
getActionBeanContextFactory()
Returns the configured ActionBeanContextFactory. |
ActionBeanPropertyBinder |
getActionBeanPropertyBinder()
Will always return an OgnlActionBeanPropertyBinder |
ActionResolver |
getActionResolver()
Will always return an instance of AnnotatedClassActionResolver |
BootstrapPropertyResolver |
getBootstrapPropertyResolver()
Returns a reference to the resolver supplied at initialziation time. |
FormatterFactory |
getFormatterFactory()
Returns an instance of a FormatterFactory. |
LocalePicker |
getLocalePicker()
Returns an instance of a LocalePicker. |
LocalizationBundleFactory |
getLocalizationBundleFactory()
Returns an instance of a LocalizationBundleFactory. |
TagErrorRendererFactory |
getTagErrorRendererFactory()
Returns an instance of a TagErrorRendererFactory. |
TypeConverterFactory |
getTypeConverterFactory()
Will always return an instance of DefaultTypeConverterFactory. |
void |
init()
Creates and stores instances of the objects of the type that the Configuration is responsible for providing, except where subclasses have already provided instances. |
protected void |
setActionBeanContextFactory(ActionBeanContextFactory contextFactory)
Allows subclasses to set the ActionBeanContextFactory instance to be used. |
protected void |
setActionBeanPropertyBinder(ActionBeanPropertyBinder propertyBinder)
Allows subclasses to set the ActionBeanPropertyBinder instance to be used. |
protected void |
setActionResolver(ActionResolver actionResolver)
Allows subclasses to set the ActionResolver instance to be used. |
void |
setBootstrapPropertyResolver(BootstrapPropertyResolver resolver)
Gratefully accepts the BootstrapPropertyResolver handed to the Configuration. |
protected void |
setFormatterFactory(FormatterFactory formatterFactory)
Allows subclasses to set the FormatterFactory instance to be used. |
protected void |
setLocalePicker(LocalePicker localePicker)
Allows subclasses to set the LocalePicker instance to be used. |
protected void |
setLocalizationBundleFactory(LocalizationBundleFactory localizationBundleFactory)
Allows subclasses to set the LocalizationBundleFactory instance to be used. |
protected void |
setTagErrorRendererFactory(TagErrorRendererFactory tagErrorRendererFactory)
Allows subclasses to set the TagErrorRendererFactory instance to be used. |
protected void |
setTypeConverterFactory(TypeConverterFactory typeConverterFactory)
Allows subclasses to set the TypeConverterFactory instance to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultConfiguration()
| Method Detail |
|---|
public void setBootstrapPropertyResolver(BootstrapPropertyResolver resolver)
setBootstrapPropertyResolver in interface Configurationresolver - a BootStrapPropertyResolver which can be used to find any values required
by the Configuration in order to initializepublic void init()
init in interface Configurationpublic BootstrapPropertyResolver getBootstrapPropertyResolver()
getBootstrapPropertyResolver in interface Configurationpublic ActionResolver getActionResolver()
getActionResolver in interface Configurationprotected void setActionResolver(ActionResolver actionResolver)
public ActionBeanPropertyBinder getActionBeanPropertyBinder()
getActionBeanPropertyBinder in interface Configurationprotected void setActionBeanPropertyBinder(ActionBeanPropertyBinder propertyBinder)
public ActionBeanContextFactory getActionBeanContextFactory()
getActionBeanContextFactory in interface Configurationprotected void setActionBeanContextFactory(ActionBeanContextFactory contextFactory)
public TypeConverterFactory getTypeConverterFactory()
getTypeConverterFactory in interface Configurationprotected void setTypeConverterFactory(TypeConverterFactory typeConverterFactory)
public LocalizationBundleFactory getLocalizationBundleFactory()
getLocalizationBundleFactory in interface Configurationprotected void setLocalizationBundleFactory(LocalizationBundleFactory localizationBundleFactory)
public LocalePicker getLocalePicker()
getLocalePicker in interface Configurationprotected void setLocalePicker(LocalePicker localePicker)
public FormatterFactory getFormatterFactory()
getFormatterFactory in interface Configurationprotected void setFormatterFactory(FormatterFactory formatterFactory)
public TagErrorRendererFactory getTagErrorRendererFactory()
getTagErrorRendererFactory in interface Configurationprotected void setTagErrorRendererFactory(TagErrorRendererFactory tagErrorRendererFactory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||