|
|||||||||||
| 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 String |
configFile
|
protected String |
configuration
|
protected 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()
A lifecycle method where implementor should free up any resources. |
BeanFactory |
getBeanFactory()
The spring application context used to build components |
Object |
getComponent(Object key)
Queries a component from the underlying container |
String |
getConfigFile()
|
String |
getConfiguration()
|
void |
initialise()
Method used to perform any initialisation work. |
void |
setBeanFactory(BeanFactory beanFactory)
Sets the spring application context used to build components |
void |
setConfigFile(String configFile)
|
void |
setConfiguration(String configuration)
|
void |
setExternalBeanFactory(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 BeanFactory beanFactory
protected BeanFactory externalBeanFactory
protected String configFile
protected String configuration
| Constructor Detail |
public SpringContainerContext()
| Method Detail |
public void setBeanFactory(BeanFactory beanFactory)
beanFactory - the context to usepublic void setExternalBeanFactory(BeanFactory factory)
public BeanFactory getBeanFactory()
public Object getComponent(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 String getConfigFile()
public void setConfigFile(String configFile)
throws ConfigurationException
configFile - The configFile to set.
ConfigurationException
public void configure(Reader configuration)
throws ContainerException
configure in class AbstractContainerContextContainerException
public void configure(String configurationXmlAsString)
throws ContainerException
configurationXmlAsString - XML config contents
ContainerException - in case of any error
public void initialise()
throws InitialisationException
InitialisableInitialisationException 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 Initialisableinitialise in class AbstractContainerContextInitialisationExceptionpublic void dispose()
Disposable
dispose in interface Disposabledispose in class AbstractContainerContextpublic String getConfiguration()
public void setConfiguration(String configuration)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||