Package org.apache.struts2.text
Class StrutsTextProviderFactory
java.lang.Object
org.apache.struts2.text.StrutsTextProviderFactory
- All Implemented Interfaces:
TextProviderFactory
This factory enables users to provide and correctly initialize a custom TextProvider.
-
Field Summary
Modifier and TypeFieldDescriptionprotected TextProvider
protected LocaleProviderFactory
protected LocalizedTextProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(Class<?> clazz) createInstance
(ResourceBundle bundle) protected TextProvider
getTextProvider
(Class clazz) protected TextProvider
getTextProvider
(ResourceBundle bundle) void
setDefaultTextProvider
(TextProvider defaultTextProvider) void
setLocaleProviderFactory
(LocaleProviderFactory localeProviderFactory) void
setLocalizedTextProvider
(LocalizedTextProvider localizedTextProvider)
-
Field Details
-
localeProviderFactory
-
localizedTextProvider
-
defaultTextProvider
-
-
Constructor Details
-
StrutsTextProviderFactory
public StrutsTextProviderFactory()
-
-
Method Details
-
setLocaleProviderFactory
-
setLocalizedTextProvider
-
setDefaultTextProvider
-
createInstance
- Specified by:
createInstance
in interfaceTextProviderFactory
-
createInstance
- Specified by:
createInstance
in interfaceTextProviderFactory
-
getTextProvider
-
getTextProvider
-