public class OsgiBundleXmlApplicationContextFactory extends Object implements org.springframework.osgi.context.BundleContextAware, ApplicationContextFactory, org.springframework.context.ApplicationContextAware
ApplicationContextFactory
that can be used to load a context from an
XML location in a bundle.Constructor and Description |
---|
OsgiBundleXmlApplicationContextFactory() |
Modifier and Type | Method and Description |
---|---|
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() |
public OsgiBundleXmlApplicationContextFactory()
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.ApplicationContextAware
org.springframework.beans.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 org.springframework.context.ConfigurableApplicationContext createApplicationContext()
BundleContext
and the enclosing Spring
ApplicationContext
as a parent context.createApplicationContext
in interface ApplicationContextFactory
ApplicationContextFactory.createApplicationContext()
Copyright © 2014 Pivotal. All rights reserved.