|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.impl.container.AbstractContainerContext
org.mule.extras.spring.SpringContainerContext
SpringContainerContext is a Spring Context that can expose
spring-managed components for use in the Mule framework.
| Field Summary | |
protected org.springframework.beans.factory.BeanFactory |
beanFactory
the application contect to use when resolving components |
protected String |
configFile
|
protected String |
configuration
|
protected org.springframework.beans.factory.BeanFactory |
externalBeanFactory
|
protected static Log |
logger
logger used by this class |
static String |
SPRING_DOCTYPE_REF
|
| Constructor Summary | |
SpringContainerContext()
|
|
| Method Summary | |
void |
configure(Reader configuration)
|
void |
configure(String configurationXmlAsString)
Configure Spring by passing an in-memory XML Spring config. |
void |
dispose()
|
org.springframework.beans.factory.BeanFactory |
getBeanFactory()
The spring application context used to build components |
Object |
getComponent(Object key)
|
String |
getConfigFile()
|
String |
getConfiguration()
|
void |
initialise()
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Sets the spring application context used to build components |
void |
setConfigFile(String configFile)
|
void |
setConfiguration(String configuration)
|
void |
setExternalBeanFactory(org.springframework.beans.factory.BeanFactory factory)
|
| Methods inherited from class org.mule.impl.container.AbstractContainerContext |
configure, getDefaultDocType, getDefaultEncoding, getName, getXmlDeclaration, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String SPRING_DOCTYPE_REF
protected static Log logger
protected org.springframework.beans.factory.BeanFactory beanFactory
protected org.springframework.beans.factory.BeanFactory externalBeanFactory
protected String configFile
protected String configuration
| Constructor Detail |
public SpringContainerContext()
| Method Detail |
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarebeanFactory - the context to usepublic void setExternalBeanFactory(org.springframework.beans.factory.BeanFactory factory)
public org.springframework.beans.factory.BeanFactory getBeanFactory()
public Object getComponent(Object key)
throws org.mule.umo.manager.ObjectNotFoundException
getComponent in interface org.mule.umo.manager.UMOContainerContextorg.mule.umo.manager.ObjectNotFoundExceptionpublic String getConfigFile()
public void setConfigFile(String configFile)
throws org.mule.config.ConfigurationException
configFile - The configFile to set.
org.mule.config.ConfigurationException
public void configure(Reader configuration)
throws org.mule.umo.manager.ContainerException
org.mule.umo.manager.ContainerException
public void configure(String configurationXmlAsString)
throws org.mule.umo.manager.ContainerException
configurationXmlAsString - XML config contents
org.mule.umo.manager.ContainerException - in case of any error
public void initialise()
throws org.mule.umo.lifecycle.InitialisationException
initialise in interface org.mule.umo.lifecycle.Initialisableorg.mule.umo.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.umo.lifecycle.Disposablepublic String getConfiguration()
public void setConfiguration(String configuration)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||