|
||||||||||
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
public class 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 context to use when resolving components |
protected String |
configResources
One or more Spring XML config files |
protected String |
configXml
The Spring XML itself |
protected org.springframework.beans.factory.BeanFactory |
externalBeanFactory
|
static String |
SPRING_DOCTYPE_REF
|
Fields inherited from class org.mule.impl.container.AbstractContainerContext |
---|
logger |
Constructor Summary | |
---|---|
SpringContainerContext()
|
Method Summary | |
---|---|
void |
configure(Reader reader)
|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
org.springframework.beans.factory.BeanFactory |
getBeanFactory()
The spring application context used to build components |
Object |
getComponent(Object key)
Queries a component from the underlying container |
String |
getConfigFile()
Deprecated. use getConfigResources() instead |
String |
getConfigResources()
One or more Spring XML config files |
String |
getConfiguration()
Deprecated. use getConfigXml() instead |
String |
getConfigXml()
The Spring XML itself |
void |
initialise()
Method used to perform any initialisation work. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Sets the spring application context used to build components |
void |
setConfigFile(String configFile)
Deprecated. use setConfigResources() instead |
void |
setConfigResources(String configResources)
One or more Spring XML config files |
void |
setConfiguration(String configuration)
Deprecated. use setConfigXml() instead |
void |
setConfigXml(String configXml)
The Spring XML itself |
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 org.springframework.beans.factory.BeanFactory beanFactory
protected org.springframework.beans.factory.BeanFactory externalBeanFactory
protected String configResources
protected String configXml
Constructor Detail |
---|
public SpringContainerContext()
Method Detail |
---|
public Object getComponent(Object key) throws ObjectNotFoundException
UMOContainerContext
getComponent
in interface UMOContainerContext
key
- the key fo find the component with. Its up to the individual
implementation to check the type of this key and look up objects
accordingly
ObjectNotFoundException
- if the component is not foundpublic void configure(Reader reader) throws ContainerException
configure
in class AbstractContainerContext
ContainerException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise
in interface Initialisable
initialise
in class AbstractContainerContext
InitialisationException
- if a fatal error occurs causing the Mule
instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
dispose
in class AbstractContainerContext
public org.springframework.beans.factory.BeanFactory getBeanFactory()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
beanFactory
- the context to usepublic void setExternalBeanFactory(org.springframework.beans.factory.BeanFactory factory)
public String getConfigXml()
public void setConfigXml(String configXml)
public String getConfiguration()
public void setConfiguration(String configuration)
public String getConfigResources()
public void setConfigResources(String configResources)
public String getConfigFile()
public void setConfigFile(String configFile) throws ConfigurationException
ConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |