org.mule.extras.spring
Class SpringContainerContext

java.lang.Object
  extended byorg.mule.extras.spring.SpringContainerContext
All Implemented Interfaces:
UMOContainerContext

public class SpringContainerContext
extends java.lang.Object
implements UMOContainerContext

SpringContainerContext is a Spring Context that can expose spring-managed components for use in the Mule framework.

Version:
$Revision: 1.4 $
Author:
Ross Mason

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
 
Constructor Summary
SpringContainerContext()
           
 
Method Summary
 void configure(java.io.Reader configuration, java.util.Map configurationProperties)
           
 BeanFactory getBeanFactory()
          The spring application context used to build components
 java.lang.Object getComponent(java.lang.Object key)
           
 java.lang.String getConfigFile()
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient Log logger
logger used by this class


beanFactory

protected BeanFactory beanFactory
the application contect to use when resolving components


externalBeanFactory

protected BeanFactory externalBeanFactory

configFile

protected java.lang.String configFile
Constructor Detail

SpringContainerContext

public SpringContainerContext()
Method Detail

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
Sets the spring application context used to build components

Parameters:
beanFactory - the context to use

setExternalBeanFactory

public void setExternalBeanFactory(BeanFactory factory)

getBeanFactory

public BeanFactory getBeanFactory()
The spring application context used to build components

Returns:
spring application context

getComponent

public java.lang.Object getComponent(java.lang.Object key)
                              throws ComponentNotFoundException
Specified by:
getComponent in interface UMOContainerContext
Throws:
ComponentNotFoundException

getConfigFile

public java.lang.String getConfigFile()

setConfigFile

public void setConfigFile(java.lang.String configFile)
                   throws ConfigurationException
Parameters:
configFile - The configFile to set.
Throws:
ConfigurationException

configure

public void configure(java.io.Reader configuration,
                      java.util.Map configurationProperties)
               throws ComponentResolverException
Specified by:
configure in interface UMOContainerContext
Throws:
ComponentResolverException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.