public class SimpleTheme extends Object implements Theme
Theme
implementation, wrapping a name and an
underlying MessageSource
.Constructor and Description |
---|
SimpleTheme(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.
|
String |
getName()
Return the name of the theme.
|
public SimpleTheme(String name, MessageSource messageSource)
name
- the name of the thememessageSource
- the MessageSource that resolves theme messagespublic final String getName()
Theme
public final MessageSource getMessageSource()
Theme
getMessageSource
in interface Theme
null
)