org.mule.extras.spring
Class SpringContainerContext

java.lang.Object
  extended byorg.mule.impl.container.AbstractContainerContext
      extended byorg.mule.extras.spring.SpringContainerContext
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.mule.umo.lifecycle.Disposable, org.mule.umo.lifecycle.Initialisable, org.mule.umo.manager.UMOContainerContext

public class SpringContainerContext
extends org.mule.impl.container.AbstractContainerContext
implements org.springframework.beans.factory.BeanFactoryAware

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()
           
 org.springframework.beans.factory.BeanFactory getBeanFactory()
          The spring application context used to build components
 Object getComponent(Object key)
           
 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()
           
 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

SPRING_DOCTYPE_REF

public static final String SPRING_DOCTYPE_REF
See Also:
Constant Field Values

beanFactory

protected org.springframework.beans.factory.BeanFactory beanFactory
the application context to use when resolving components


externalBeanFactory

protected org.springframework.beans.factory.BeanFactory externalBeanFactory

configResources

protected String configResources
One or more Spring XML config files


configXml

protected String configXml
The Spring XML itself

Constructor Detail

SpringContainerContext

public SpringContainerContext()
Method Detail

getComponent

public Object getComponent(Object key)
                    throws org.mule.umo.manager.ObjectNotFoundException
Specified by:
getComponent in interface org.mule.umo.manager.UMOContainerContext
Throws:
org.mule.umo.manager.ObjectNotFoundException

configure

public void configure(Reader reader)
               throws org.mule.umo.manager.ContainerException
Throws:
org.mule.umo.manager.ContainerException

initialise

public void initialise()
                throws org.mule.umo.lifecycle.InitialisationException
Specified by:
initialise in interface org.mule.umo.lifecycle.Initialisable
Throws:
org.mule.umo.lifecycle.InitialisationException

dispose

public void dispose()
Specified by:
dispose in interface org.mule.umo.lifecycle.Disposable

getBeanFactory

public org.springframework.beans.factory.BeanFactory getBeanFactory()
The spring application context used to build components

Returns:
spring application context

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Sets the spring application context used to build components

Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Parameters:
beanFactory - the context to use

setExternalBeanFactory

public void setExternalBeanFactory(org.springframework.beans.factory.BeanFactory factory)

getConfigXml

public String getConfigXml()
The Spring XML itself


setConfigXml

public void setConfigXml(String configXml)
The Spring XML itself


getConfiguration

public String getConfiguration()
Deprecated. use getConfigXml() instead

The Spring XML itself.


setConfiguration

public void setConfiguration(String configuration)
Deprecated. use setConfigXml() instead

The Spring XML itself.


getConfigResources

public String getConfigResources()
One or more Spring XML config files


setConfigResources

public void setConfigResources(String configResources)
One or more Spring XML config files


getConfigFile

public String getConfigFile()
Deprecated. use getConfigResources() instead


setConfigFile

public void setConfigFile(String configFile)
                   throws org.mule.config.ConfigurationException
Deprecated. use setConfigResources() instead

Throws:
org.mule.config.ConfigurationException


Copyright © 2003-2007 MuleSource, Inc.. All Rights Reserved.