|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.configuration.support.ClassPathXmlApplicationContextFactory
public class ClassPathXmlApplicationContextFactory
ApplicationContextFactory implementation that takes a parent context and a path
to the context to create. Each time the createApplicationContext method is called, a new
ApplicationContext will be returned. It should be noted that if a path isn't
set, the parent will always be returned.
| Constructor Summary | |
|---|---|
ClassPathXmlApplicationContextFactory()
|
|
| Method Summary | |
|---|---|
org.springframework.context.ConfigurableApplicationContext |
createApplicationContext()
Creates an ApplicationContext from the provided path. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Setter for the parent application context. |
void |
setPath(org.springframework.core.io.Resource path)
Setter for the path to the xml to load to create an ApplicationContext. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPathXmlApplicationContextFactory()
| Method Detail |
|---|
public void setPath(org.springframework.core.io.Resource path)
ApplicationContext. Use imports to centralise the configuration in
one file.
path - the resource path to the xml to load for the child context.
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)public org.springframework.context.ConfigurableApplicationContext createApplicationContext()
ApplicationContext from the provided path.
createApplicationContext in interface ApplicationContextFactoryApplicationContextFactory.createApplicationContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||