public class SimpleTheme extends java.lang.Object implements Theme
Theme
implementation, wrapping a name and an
underlying MessageSource
.Constructor and Description |
---|
SimpleTheme(java.lang.String name,
MessageSource messageSource)
Create a SimpleTheme.
|
Modifier and Type | Method and Description |
---|---|
MessageSource |
getMessageSource()
Return the specific MessageSource that resolves messages
with respect to this theme.
|
java.lang.String |
getName()
Return the name of the theme.
|
public SimpleTheme(java.lang.String name, MessageSource messageSource)
name
- the name of the thememessageSource
- the MessageSource that resolves theme messagespublic final java.lang.String getName()
Theme
public final MessageSource getMessageSource()
Theme
getMessageSource
in interface Theme
null
)