Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » context » support » [javadoc | source]
org.springframework.context.support
public class: StaticApplicationContext [javadoc | source]
java.lang.Object
   org.springframework.core.io.DefaultResourceLoader
      org.springframework.context.support.AbstractApplicationContext
         org.springframework.context.support.GenericApplicationContext
            org.springframework.context.support.StaticApplicationContext

All Implemented Interfaces:
    BeanDefinitionRegistry, ConfigurableApplicationContext, DisposableBean, ResourceLoader

Direct Known Subclasses:
    StaticPortletApplicationContext, StaticWebApplicationContext

org.springframework.context.ApplicationContext implementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources. Mainly useful for testing.
Fields inherited from org.springframework.context.support.AbstractApplicationContext:
MESSAGE_SOURCE_BEAN_NAME,  APPLICATION_EVENT_MULTICASTER_BEAN_NAME,  logger
Constructor:
 public StaticApplicationContext() throws BeansException 
    Create a new StaticApplicationContext.
 public StaticApplicationContext(ApplicationContext parent) throws BeansException 
    Create a new StaticApplicationContext with the given parent.
Method from org.springframework.context.support.StaticApplicationContext Summary:
addMessage,   getStaticMessageSource,   registerPrototype,   registerPrototype,   registerSingleton,   registerSingleton
Methods from org.springframework.context.support.GenericApplicationContext:
closeBeanFactory,   getBeanDefinition,   getBeanFactory,   getDefaultListableBeanFactory,   getResource,   getResources,   isAlias,   isBeanNameInUse,   refreshBeanFactory,   registerAlias,   registerBeanDefinition,   removeAlias,   removeBeanDefinition,   setParent,   setResourceLoader
Methods from org.springframework.context.support.AbstractApplicationContext:
addApplicationListener,   addBeanFactoryPostProcessor,   addListener,   cancelRefresh,   close,   closeBeanFactory,   containsBean,   containsBeanDefinition,   containsLocalBean,   destroy,   destroyBeans,   doClose,   finishBeanFactoryInitialization,   finishRefresh,   getAliases,   getApplicationListeners,   getAutowireCapableBeanFactory,   getBean,   getBean,   getBean,   getBeanDefinitionCount,   getBeanDefinitionNames,   getBeanFactory,   getBeanFactoryPostProcessors,   getBeanNamesForType,   getBeanNamesForType,   getBeansOfType,   getBeansOfType,   getDisplayName,   getId,   getInternalParentBeanFactory,   getInternalParentMessageSource,   getMessage,   getMessage,   getMessage,   getParent,   getParentBeanFactory,   getResourcePatternResolver,   getResources,   getStartupDate,   getType,   initApplicationEventMulticaster,   initMessageSource,   invokeBeanFactoryPostProcessors,   isActive,   isPrototype,   isRunning,   isSingleton,   isTypeMatch,   obtainFreshBeanFactory,   onClose,   onRefresh,   postProcessBeanFactory,   prepareBeanFactory,   prepareRefresh,   publishEvent,   refresh,   refreshBeanFactory,   registerBeanPostProcessors,   registerListeners,   registerShutdownHook,   setDisplayName,   setId,   setParent,   start,   stop,   toString
Methods from org.springframework.core.io.DefaultResourceLoader:
getClassLoader,   getResource,   getResourceByPath,   setClassLoader
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.context.support.StaticApplicationContext Detail:
 public  void addMessage(String code,
    Locale locale,
    String defaultMessage) 
    Associate the given message with the given code.
 public final StaticMessageSource getStaticMessageSource() 
    Return the internal StaticMessageSource used by this context. Can be used to register messages on it.
 public  void registerPrototype(String name,
    Class clazz) throws BeansException 
    Register a prototype bean with the underlying bean factory.

    For more advanced needs, register with the underlying BeanFactory directly.

 public  void registerPrototype(String name,
    Class clazz,
    MutablePropertyValues pvs) throws BeansException 
    Register a prototype bean with the underlying bean factory.

    For more advanced needs, register with the underlying BeanFactory directly.

 public  void registerSingleton(String name,
    Class clazz) throws BeansException 
    Register a singleton bean with the underlying bean factory.

    For more advanced needs, register with the underlying BeanFactory directly.

 public  void registerSingleton(String name,
    Class clazz,
    MutablePropertyValues pvs) throws BeansException 
    Register a singleton bean with the underlying bean factory.

    For more advanced needs, register with the underlying BeanFactory directly.