GigaSpaces - Open Spaces

org.openspaces.esb.mule.pu
Class OpenSpacesMuleContextLoader

java.lang.Object
  extended by org.openspaces.esb.mule.pu.OpenSpacesMuleContextLoader
All Implemented Interfaces:
EventListener, DisposableBean, InitializingBean, ApplicationContextAware, ApplicationListener

public class OpenSpacesMuleContextLoader
extends Object
implements ApplicationContextAware, InitializingBean, DisposableBean, ApplicationListener

OpenSpacesMuleContextLoader used for loading Mule configuration that refrenced from PU configuration file.

It sets the PU appliction context as the parent of Mule appliction context, giving it the ability to access beans that declerd in the PU appliction context.

Author:
yitzhaki

Constructor Summary
OpenSpacesMuleContextLoader()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void onApplicationEvent(ApplicationEvent event)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 void setLocation(String location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSpacesMuleContextLoader

public OpenSpacesMuleContextLoader()
Method Detail

setLocation

public void setLocation(String location)

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Specified by:
setApplicationContext in interface ApplicationContextAware
Throws:
BeansException

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

GigaSpaces - Open Spaces

Copyright © GigaSpaces.