org.mule.extras.spring.config
Class MuleManagerBean

java.lang.Object
  extended byorg.mule.extras.spring.config.MuleManagerBean
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.beans.factory.DisposableBean, EventListener, org.springframework.beans.factory.InitializingBean

public class MuleManagerBean
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

This Bean can e used to bootstrap a MuleManager instance in a Spring context. This is different to the AutoWireUMOManagerFactoryBean in that the Manager is not initialised using beans from the ApplicationContext. Instead, a list of Mule Configuration resources can be passed in. The Configuration builder can be overloaded so that other types of configuration resources, such as BeanShell or Groovy scripts cn be used to actually configure the server. For example to pick up all Mule confuration resources from the classpath, use something like - ....


Constructor Summary
MuleManagerBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 ConfigurationBuilder getConfigurationBuilder()
           
 void onApplicationEvent(org.springframework.context.ApplicationEvent event)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setConfigResources(org.springframework.core.io.Resource[] configResources)
           
 void setConfigurationBuilder(ConfigurationBuilder configurationBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleManagerBean

public MuleManagerBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

setConfigResources

public void setConfigResources(org.springframework.core.io.Resource[] configResources)

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

getConfigurationBuilder

public ConfigurationBuilder getConfigurationBuilder()

setConfigurationBuilder

public void setConfigurationBuilder(ConfigurationBuilder configurationBuilder)


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