public class

SimpleTheme

extends Object
implements Theme
java.lang.Object
   ↳ org.springframework.ui.context.support.SimpleTheme

Class Overview

Default Theme implementation, wrapping a name and an underlying MessageSource.

Summary

Public Constructors
SimpleTheme(String name, MessageSource messageSource)
Create a SimpleTheme.
Public Methods
final MessageSource getMessageSource()
Return the specific MessageSource that resolves messages with respect to this theme.
final String getName()
Return the name of the theme.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.ui.context.Theme

Public Constructors

public SimpleTheme (String name, MessageSource messageSource)

Create a SimpleTheme.

Parameters
name the name of the theme
messageSource the MessageSource that resolves theme messages

Public Methods

public final MessageSource getMessageSource ()

Return the specific MessageSource that resolves messages with respect to this theme.

Returns
  • the theme-specific MessageSource (never null)

public final String getName ()

Return the name of the theme.

Returns
  • the name of the theme (never null)