|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.configuration.support.ClasspathXmlApplicationContextsFactoryBean
public class ClasspathXmlApplicationContextsFactoryBean
A convenient factory for creating a set of ApplicationContextFactory
components from a set of resources
.
Constructor Summary | |
---|---|
ClasspathXmlApplicationContextsFactoryBean()
|
Method Summary | |
---|---|
Object |
getObject()
Create an ApplicationContextFactory from each resource provided
in setResources(Resource[]) . |
Class<?> |
getObjectType()
The type of object returned by this factory - an array of ApplicationContextFactory . |
boolean |
isSingleton()
Optimization hint for bean factory. |
void |
setApplicationContext(ApplicationContext applicationContext)
An application context that can be used as a parent context for all the factories. |
void |
setBeanFactoryPostProcessorClasses(Class<? extends BeanFactoryPostProcessor>[] beanFactoryPostProcessorClasses)
Determines which bean factory post processors (like property placeholders) should be copied from the parent context. |
void |
setBeanPostProcessorExcludeClasses(Class<?>[] beanPostProcessorExcludeClasses)
Determines by exclusion which bean post processors should be copied from the parent context. |
void |
setCopyConfiguration(boolean copyConfiguration)
Flag to indicate that configuration such as bean post processors and custom editors should be copied from the parent context. |
void |
setResources(Resource[] resources)
A set of resources to load using a ClassPathXmlApplicationContextFactory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClasspathXmlApplicationContextsFactoryBean()
Method Detail |
---|
public void setResources(Resource[] resources)
ClassPathXmlApplicationContextFactory
. Each resource should be a
Spring configuration file which is loaded into an application context
whose parent is the current context. In a configuration file the
resources can be given as a pattern (e.g.
classpath*:/config/*-context.xml
).
resources
- public void setCopyConfiguration(boolean copyConfiguration)
copyConfiguration
- the flag value to setpublic void setBeanFactoryPostProcessorClasses(Class<? extends BeanFactoryPostProcessor>[] beanFactoryPostProcessorClasses)
PropertyPlaceholderConfigurer
and CustomEditorConfigurer
.
copyBeanFactoryPostProcessors
- the flag value to setpublic void setBeanPostProcessorExcludeClasses(Class<?>[] beanPostProcessorExcludeClasses)
BeanFactoryAware
(so any post
processors that have a reference to the parent bean factory are not
copied into the child). Note that these classes do not themselves have to
be BeanPostProcessor
implementations or sub-interfaces.
beanPostProcessorExcludeClasses
- the classes to setpublic Object getObject() throws Exception
ApplicationContextFactory
from each resource provided
in setResources(Resource[])
.
getObject
in interface FactoryBean
ApplicationContextFactory
Exception
FactoryBean.getObject()
public Class<?> getObjectType()
ApplicationContextFactory
.
getObjectType
in interface FactoryBean
ApplicationContextFactory
FactoryBean.getObjectType()
public boolean isSingleton()
isSingleton
in interface FactoryBean
FactoryBean.isSingleton()
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
applicationContext
- the ApplicationContext
to set
BeansException
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |