com.interface21.ui.context.support
Class StaticUiApplicationContext

java.lang.Object
  |
  +--com.interface21.context.support.AbstractApplicationContext
        |
        +--com.interface21.context.support.StaticApplicationContext
              |
              +--com.interface21.ui.context.support.StaticUiApplicationContext
All Implemented Interfaces:
ApplicationContext, BeanFactory, ListableBeanFactory, MessageSource, ThemeSource
Direct Known Subclasses:
StaticWebApplicationContext

public class StaticUiApplicationContext
extends StaticApplicationContext
implements ThemeSource

Adds theme capabilities for UI contexts.

Author:
Jean-Pierre Pawlak

Fields inherited from class com.interface21.context.support.AbstractApplicationContext
logger, MESSAGE_SOURCE_BEAN_NAME, OPTIONS_BEAN_NAME
 
Constructor Summary
StaticUiApplicationContext()
          Standard constructor.
StaticUiApplicationContext(ApplicationContext parent)
          Constructor with parent context.
 
Method Summary
 Theme getTheme(java.lang.String themeName)
          Return the Theme instance for the given theme name.
protected  void onRefresh()
          Initialize the theme capability.
 
Methods inherited from class com.interface21.context.support.StaticApplicationContext
addMessage, getBeanFactory, loadBeanFactory, rebuild, refreshBeanFactory, registerPrototype, registerSingleton
 
Methods inherited from class com.interface21.context.support.AbstractApplicationContext
addListener, configureManagedObject, getAliases, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getDisplayName, getMessage, getMessage, getMessage, getOptions, getParent, getResourceAsStream, getResourceBasePath, getResourceByPath, getStartupDate, isSingleton, publishEvent, refresh, removeSharedObject, setDisplayName, setParent, sharedObject, shareObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticUiApplicationContext

public StaticUiApplicationContext()
                           throws BeansException,
                                  ApplicationContextException
Standard constructor.

StaticUiApplicationContext

public StaticUiApplicationContext(ApplicationContext parent)
                           throws BeansException,
                                  ApplicationContextException
Constructor with parent context.
Method Detail

onRefresh

protected void onRefresh()
Initialize the theme capability.
Overrides:
onRefresh in class AbstractApplicationContext
Following copied from class: com.interface21.context.support.AbstractApplicationContext
Throws:
ApplicationContextException - in case of errors during refresh

getTheme

public Theme getTheme(java.lang.String themeName)
Description copied from interface: ThemeSource
Return the Theme instance for the given theme name. The returned Theme will resolve theme-specific messages, codes, file paths, etc (e.g. CSS and image files in a web environment).
Specified by:
getTheme in interface ThemeSource
Following copied from interface: com.interface21.ui.context.ThemeSource
Parameters:
themeName - name of the theme
Returns:
the respective Theme, or null if none defined


Rod Johnson and Spring contributors 2001-2003.