|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
org.springframework.context.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(org.springframework.context.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(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 void setBundleContext(org.osgi.framework.BundleContext context)
BundleContext for creating a job application context
later.
setBundleContext in interface org.springframework.osgi.context.BundleContextAwareBundleContextAware.setBundleContext(org.osgi.framework.BundleContext)public org.springframework.context.ConfigurableApplicationContext createApplicationContext()
BundleContext and the enclosing Spring
ApplicationContext as a parent context.
createApplicationContext in interface ApplicationContextFactoryApplicationContextFactory.createApplicationContext()public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||