org.springframework.batch.core.configuration.support
Class OsgiBundleXmlApplicationContextFactory
java.lang.Object
org.springframework.batch.core.configuration.support.OsgiBundleXmlApplicationContextFactory
- All Implemented Interfaces:
- ApplicationContextFactory, ApplicationContextAware, org.springframework.osgi.context.BundleContextAware
public class OsgiBundleXmlApplicationContextFactory
- extends Object
- implements org.springframework.osgi.context.BundleContextAware, ApplicationContextFactory, ApplicationContextAware
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiBundleXmlApplicationContextFactory
public OsgiBundleXmlApplicationContextFactory()
setPath
public void setPath(String path)
- Parameters:
path
- the resource path to the xml to load for the child context.
setDisplayName
public void setDisplayName(String displayName)
- Parameters:
displayName
- the display name for the application context created.
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
- Setter for the parent application context.
- Specified by:
setApplicationContext
in interface ApplicationContextAware
- Throws:
BeansException
- See Also:
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext context)
- Stash the
BundleContext
for creating a job application context
later.
- Specified by:
setBundleContext
in interface org.springframework.osgi.context.BundleContextAware
- See Also:
BundleContextAware.setBundleContext(org.osgi.framework.BundleContext)
createApplicationContext
public ConfigurableApplicationContext createApplicationContext()
- Create an application context from the provided path, using the current
OSGi
BundleContext
and the enclosing Spring
ApplicationContext
as a parent context.
- Specified by:
createApplicationContext
in interface ApplicationContextFactory
- See Also:
ApplicationContextFactory.createApplicationContext()
Copyright © 2009 SpringSource. All Rights Reserved.