| java.lang.Object org.springframework.ui.context.support.ResourceBundleThemeSource
Field Summary | |
final protected Log | logger |
Method Summary | |
protected MessageSource | createMessageSource(String basename) Create a MessageSource for the given basename,
to be used as MessageSource for the corresponding theme.
Default implementation creates a ResourceBundleMessageSource.
for the given basename. | public ThemeSource | getParentThemeSource() | public Theme | getTheme(String themeName) This implementation returns a SimpleTheme instance, holding a
ResourceBundle-based MessageSource whose basename corresponds to
the given theme name (prefixed by the configured "basenamePrefix").
SimpleTheme instances are cached per theme name. | protected void | initParent(Theme theme) Initialize the MessageSource of the given theme with the
one from the corresponding parent of this ThemeSource. | public void | setBasenamePrefix(String basenamePrefix) Set the prefix that gets applied to the ResourceBundle basenames,
i.e. | public void | setParentThemeSource(ThemeSource parent) |
logger | final protected Log logger(Code) | | |
initParent | protected void initParent(Theme theme)(Code) | | Initialize the MessageSource of the given theme with the
one from the corresponding parent of this ThemeSource.
Parameters: theme - the Theme to (re-)initialize |
setBasenamePrefix | public void setBasenamePrefix(String basenamePrefix)(Code) | | Set the prefix that gets applied to the ResourceBundle basenames,
i.e. the theme names.
E.g.: basenamePrefix="test.", themeName="theme" -> basename="test.theme".
Note that ResourceBundle names are effectively classpath locations: As a
consequence, the JDK's standard ResourceBundle treats dots as package separators.
This means that "test.theme" is effectively equivalent to "test/theme",
just like it is for programmatic java.util.ResourceBundle usage.
See Also: java.util.ResourceBundle.getBundle(String) |
|
|