|
||||||||||
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.OsgiBundleXmlApplicationContextFactory
public class OsgiBundleXmlApplicationContextFactory
ApplicationContextFactory
that can be used to load a context from an
XML location in a bundle.
Constructor Summary | |
---|---|
OsgiBundleXmlApplicationContextFactory()
|
Method Summary | |
---|---|
ConfigurableApplicationContext |
createApplicationContext()
Create an application context from the provided path, using the current OSGi BundleContext and the enclosing Spring
ApplicationContext as a parent context. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
void |
setApplicationContext(ApplicationContext applicationContext)
Setter for the parent application context. |
void |
setBundleContext(org.osgi.framework.BundleContext context)
Stash the BundleContext for creating a job application context
later. |
void |
setDisplayName(String displayName)
|
void |
setPath(String path)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OsgiBundleXmlApplicationContextFactory()
Method Detail |
---|
public void setPath(String path)
path
- the resource path to the xml to load for the child context.public void setDisplayName(String displayName)
displayName
- the display name for the application context created.public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
public void setBundleContext(org.osgi.framework.BundleContext context)
BundleContext
for creating a job application context
later.
setBundleContext
in interface org.springframework.osgi.context.BundleContextAware
BundleContextAware.setBundleContext(org.osgi.framework.BundleContext)
public ConfigurableApplicationContext createApplicationContext()
BundleContext
and the enclosing Spring
ApplicationContext
as a parent context.
createApplicationContext
in interface ApplicationContextFactory
ApplicationContextFactory.createApplicationContext()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |