|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.io.DefaultResourceLoader org.springframework.context.support.AbstractApplicationContext org.springframework.context.support.AbstractRefreshableApplicationContext org.springframework.config.java.context.AnnotationApplicationContext
JavaConfigApplicationContext
. This class
will be eliminated before the 1.0 release of JavaConfig
@Deprecated public class AnnotationApplicationContext
Annotation-aware application context that looks for classes annotated with the Configuration annotation and registers the beans they define.
Field Summary |
---|
Fields inherited from class org.springframework.context.support.AbstractApplicationContext |
---|
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME |
Fields inherited from interface org.springframework.context.ConfigurableApplicationContext |
---|
LOAD_TIME_WEAVER_BEAN_NAME |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
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 |
Constructor Summary | |
---|---|
AnnotationApplicationContext()
Deprecated. Create a new AnnotationApplicationContext w/o any settings. |
|
AnnotationApplicationContext(ApplicationContext parent)
Deprecated. Create a new AnnotationApplicationContext with the given parent. |
|
AnnotationApplicationContext(ApplicationContext parent,
Class<?>... classes)
Deprecated. Create a new AnnotationApplicationContext with the given parent and classes. |
|
AnnotationApplicationContext(ApplicationContext parent,
String... basePackages)
Deprecated. Create a new AnnotationApplicationContext with the given parent and base packages. |
|
AnnotationApplicationContext(Class<?>... classes)
Deprecated. Create a new AnnotationApplicationContext from the given classes ( AbstractApplicationContext.refresh()
is being called). |
|
AnnotationApplicationContext(String... basePackages)
Deprecated. Create a new AnnotationApplicationContext from the given locations ( AbstractApplicationContext.refresh()
is being called). |
Method Summary | |
---|---|
protected String[] |
getBasePackages()
Deprecated. |
protected Class<?>[] |
getConfigClasses()
Deprecated. |
protected void |
loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Deprecated. |
protected void |
registerDefaultPostProcessors()
Deprecated. Register the default post processors used for parsing Spring classes. |
void |
setBasePackages(String... basePackages)
Deprecated. Set the base packages for configurations from Strings. |
void |
setConfigClasses(Class<?>... classes)
Deprecated. Indicate the Class es that hold annotations suitable for
configuring the current application context. |
Methods inherited from class org.springframework.context.support.AbstractRefreshableApplicationContext |
---|
closeBeanFactory, createBeanFactory, customizeBeanFactory, getBeanFactory, hasBeanFactory, refreshBeanFactory |
Methods inherited from class org.springframework.core.io.DefaultResourceLoader |
---|
getClassLoader, getResource, getResourceByPath, setClassLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.core.io.ResourceLoader |
---|
getClassLoader, getResource |
Constructor Detail |
---|
public AnnotationApplicationContext()
DefaultResourceLoader.setClassLoader(ClassLoader)
,
setConfigClasses(Class[])
,
setBasePackages(String[])
public AnnotationApplicationContext(ApplicationContext parent)
AbstractApplicationContext.refresh()
.
parent
- the parent application contextDefaultResourceLoader.setClassLoader(ClassLoader)
,
setConfigClasses(Class[])
,
setBasePackages(String[])
public AnnotationApplicationContext(String... basePackages)
AbstractApplicationContext.refresh()
is being called).
basePackages
- the base packages to scanpublic AnnotationApplicationContext(Class<?>... classes)
AbstractApplicationContext.refresh()
is being called).
classes
- public AnnotationApplicationContext(ApplicationContext parent, Class<?>... classes)
parent
- the parent application contextclasses
- zero or more configuration classesAnnotationApplicationContext(ApplicationContext)
,
AnnotationApplicationContext(Class...)
public AnnotationApplicationContext(ApplicationContext parent, String... basePackages)
parent
- the parent application contextbasePackages
- the base packages to scanAnnotationApplicationContext(ApplicationContext)
,
AnnotationApplicationContext(String...)
Method Detail |
---|
protected String[] getBasePackages()
protected Class<?>[] getConfigClasses()
public void setBasePackages(String... basePackages)
basePackages
- public void setConfigClasses(Class<?>... classes)
Class
es that hold annotations suitable for
configuring the current application context.
classes
- protected void registerDefaultPostProcessors()
protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws IOException, BeansException
loadBeanDefinitions
in class AbstractRefreshableApplicationContext
IOException
BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |