This method initializes the ThemeManager for the Sun Web
Component's application. It is invoked by the ThemeServlet's
init method. To initialize the ThemeManager and the Themes
during web application startup, declare the load-on-startup
property of the ThemeServlet in the web application
deployment descriptor.
Parameters: context - the ServletContext in which the application Parameters: locales - a Set of locales supported by the applicationIf this parameter is null, the supported locales will beretrieved from the JSF runtime.is running
initializeThemeManager
public static ThemeManager initializeThemeManager(ExternalContext context)(Code)
Initializes a ThemeManager based on an External Context.
This method is invoked by ThemeUtilities.getTheme() if
the ThemeManager has not been initialized during the
context initialization phase.
Parameters: context - The ExternalContext used to access Session and Context attributes The ThemeManager constructed