Class SimpleTheme
- java.lang.Object
- org.springframework.ui.context.support.SimpleTheme
- All Implemented Interfaces:
Theme
public class SimpleTheme extends Object implements Theme
DefaultTheme
implementation, wrapping a name and an underlyingMessageSource
.- Since:
- 17.06.2003
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description SimpleTheme(String name, MessageSource messageSource)
Create a SimpleTheme.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageSource
getMessageSource()
Return the specific MessageSource that resolves messages with respect to this theme.String
getName()
Return the name of the theme.
Constructor Detail
SimpleTheme
public SimpleTheme(String name, MessageSource messageSource)
Create a SimpleTheme.- Parameters:
name
- the name of the thememessageSource
- the MessageSource that resolves theme messages
Method Detail
getName
public final String getName()
Description copied from interface:Theme
Return the name of the theme.
getMessageSource
public final MessageSource getMessageSource()
Description copied from interface:Theme
Return the specific MessageSource that resolves messages with respect to this theme.- Specified by:
getMessageSource
in interfaceTheme
- Returns:
- the theme-specific MessageSource (never
null
)