| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApplicationContext
Central interface to provide configuration for an application. This is read-only while the application is running, but may be reloaded if the implementation supports this.
An ApplicationContext provides:
ListableBeanFactory.
 ResourceLoader interface.
 ApplicationEventPublisher interface.
 MessageSource interface.
 In addition to standard BeanFactory
 lifecycle capabilities, ApplicationContext implementations detect and invoke
 ApplicationContextAware beans as well as ResourceLoaderAware,
 ApplicationEventPublisherAware and MessageSourceAware beans.
ConfigurableApplicationContext, 
BeanFactory, 
ResourceLoader| Field Summary | 
|---|
| Fields inherited from interface org.springframework.beans.factory.BeanFactory | 
|---|
| FACTORY_BEAN_PREFIX | 
| Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver | 
|---|
| CLASSPATH_ALL_URL_PREFIX | 
| Fields inherited from interface org.springframework.core.io.ResourceLoader | 
|---|
| CLASSPATH_URL_PREFIX | 
| Method Summary | |
|---|---|
|  AutowireCapableBeanFactory | getAutowireCapableBeanFactory()Expose AutowireCapableBeanFactory functionality for this context. | 
|  String | getDisplayName()Return a friendly name for this context. | 
|  String | getId()Return the unique id of this application context. | 
|  ApplicationContext | getParent()Return the parent context, or nullif there is no parent
 and this is the root of the context hierarchy. | 
|  long | getStartupDate()Return the timestamp when this context was first loaded. | 
| Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory | 
|---|
| containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType | 
| Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory | 
|---|
| containsLocalBean, getParentBeanFactory | 
| Methods inherited from interface org.springframework.beans.factory.BeanFactory | 
|---|
| containsBean, getAliases, getBean, getBean, getBean, getType, isPrototype, isSingleton, isTypeMatch | 
| Methods inherited from interface org.springframework.context.MessageSource | 
|---|
| getMessage, getMessage, getMessage | 
| Methods inherited from interface org.springframework.context.ApplicationEventPublisher | 
|---|
| publishEvent | 
| Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver | 
|---|
| getResources | 
| Methods inherited from interface org.springframework.core.io.ResourceLoader | 
|---|
| getClassLoader, getResource | 
| Method Detail | 
|---|
String getId()
String getDisplayName()
long getStartupDate()
ApplicationContext getParent()
null if there is no parent
 and this is the root of the context hierarchy.
null if there is no parent
AutowireCapableBeanFactory getAutowireCapableBeanFactory()
                                                         throws IllegalStateException
This is not typically used by application code, except for the purpose of initializing bean instances that live outside the application context, applying the Spring bean lifecycle (fully or partly) to them.
Alternatively, the internal BeanFactory exposed by the
 ConfigurableApplicationContext interface offers access to the
 AutowireCapableBeanFactory interface too. The present method mainly
 serves as convenient, specific facility on the ApplicationContext
 interface itself.
IllegalStateException - if the context does not support
 the AutowireCapableBeanFactory interface or does not hold an autowire-capable
 bean factory yet (usually if refresh() has never been called)ConfigurableApplicationContext.refresh(), 
ConfigurableApplicationContext.getBeanFactory()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||