|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(org.springframework.context.ApplicationContext applicationContext)
An application context that can be used as a parent context for all the factories. |
void |
setBeanFactoryPostProcessorClasses(Class<? extends org.springframework.beans.factory.config.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(org.springframework.core.io.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(org.springframework.core.io.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 org.springframework.beans.factory.config.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 set
public Object getObject()
throws Exception
ApplicationContextFactory from each resource provided
in setResources(Resource[]).
getObject in interface org.springframework.beans.factory.FactoryBeanApplicationContextFactory
ExceptionFactoryBean.getObject()public Class<?> getObjectType()
ApplicationContextFactory.
getObjectType in interface org.springframework.beans.factory.FactoryBeanApplicationContextFactoryFactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanFactoryBean.isSingleton()public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - the ApplicationContext to set
org.springframework.beans.BeansExceptionApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||