org.granite.client.tide.spring
Class SpringEventBus

java.lang.Object
  extended by org.granite.client.tide.impl.SimpleEventBus
      extended by org.granite.client.tide.spring.SpringEventBus
All Implemented Interfaces:
EventListener, EventBus, Aware, ApplicationContextAware, ApplicationListener<TideApplicationEvent>

public class SpringEventBus
extends SimpleEventBus
implements ApplicationContextAware, ApplicationListener<TideApplicationEvent>

Author:
William DRAI

Constructor Summary
SpringEventBus()
           
 
Method Summary
 void onApplicationEvent(TideApplicationEvent event)
           
 void raiseEvent(Context context, String type, Object... args)
           
 void setApplicationContext(ApplicationContext applicationContext)
           
 
Methods inherited from class org.granite.client.tide.impl.SimpleEventBus
raiseEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringEventBus

public SpringEventBus()
Method Detail

setApplicationContext

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

raiseEvent

public void raiseEvent(Context context,
                       String type,
                       Object... args)
Specified by:
raiseEvent in interface EventBus
Overrides:
raiseEvent in class SimpleEventBus

onApplicationEvent

public void onApplicationEvent(TideApplicationEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener<TideApplicationEvent>