|
|||||||||||
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 BeanFactory |
beanFactory
the application contect to use when resolving components |
protected java.lang.String |
configFile
|
protected BeanFactory |
externalBeanFactory
|
protected static Log |
logger
logger used by this class |
static java.lang.String |
SPRING_DOCTYPE_REF
|
Fields inherited from class org.mule.impl.container.AbstractContainerContext |
DEFAULT_ENCODING |
Constructor Summary | |
SpringContainerContext()
|
Method Summary | |
void |
configure(java.io.Reader configuration)
|
BeanFactory |
getBeanFactory()
The spring application context used to build components |
java.lang.Object |
getComponent(java.lang.Object key)
Queries a component from the underlying container |
java.lang.String |
getConfigFile()
|
protected java.lang.String |
getDefaultDocType()
|
void |
initialise()
Method used to perform any initialisation work. |
void |
setBeanFactory(BeanFactory beanFactory)
Sets the spring application context used to build components |
void |
setConfigFile(java.lang.String configFile)
|
void |
setExternalBeanFactory(BeanFactory factory)
|
Methods inherited from class org.mule.impl.container.AbstractContainerContext |
configure, dispose, 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 java.lang.String SPRING_DOCTYPE_REF
protected static transient Log logger
protected BeanFactory beanFactory
protected BeanFactory externalBeanFactory
protected java.lang.String configFile
Constructor Detail |
public SpringContainerContext()
Method Detail |
public void setBeanFactory(BeanFactory beanFactory)
beanFactory
- the context to usepublic void setExternalBeanFactory(BeanFactory factory)
public BeanFactory getBeanFactory()
public java.lang.Object getComponent(java.lang.Object key) throws ObjectNotFoundException
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 java.lang.String getConfigFile()
public void setConfigFile(java.lang.String configFile) throws ConfigurationException
configFile
- The configFile to set.
ConfigurationException
public void configure(java.io.Reader configuration) throws ContainerException
configure
in class AbstractContainerContext
ContainerException
protected java.lang.String getDefaultDocType()
getDefaultDocType
in class AbstractContainerContext
public void initialise() throws InitialisationException, RecoverableException
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
RecoverableException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |