org.springframework.batch.core.configuration.support
Class OsgiBundleXmlApplicationContextFactory

java.lang.Object
  extended by org.springframework.batch.core.configuration.support.OsgiBundleXmlApplicationContextFactory
All Implemented Interfaces:
ApplicationContextFactory, org.springframework.context.ApplicationContextAware, org.springframework.osgi.context.BundleContextAware

public class OsgiBundleXmlApplicationContextFactory
extends java.lang.Object
implements org.springframework.osgi.context.BundleContextAware, ApplicationContextFactory, org.springframework.context.ApplicationContextAware


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.
 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(java.lang.String displayName)
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiBundleXmlApplicationContextFactory

public OsgiBundleXmlApplicationContextFactory()
Method Detail

setPath

public void setPath(java.lang.String path)
Parameters:
path - the resource path to the xml to load for the child context.

setDisplayName

public void setDisplayName(java.lang.String displayName)
Parameters:
displayName - the display name for the application context created.

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Setter for the parent application context.

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.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 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.

Specified by:
createApplicationContext in interface ApplicationContextFactory
See Also:
ApplicationContextFactory.createApplicationContext()


Copyright © 2009. All Rights Reserved.