com.atlassian.event.legacy
Class SpringContextEventPublisher

java.lang.Object
  extended by com.atlassian.event.legacy.SpringContextEventPublisher
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class SpringContextEventPublisher
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware

An event listener for all Spring application events so that they get published to the actual Spring context.

Simply register this against your Spring context to handle event the same 'old' way

Since:
2.0.0

Constructor Summary
SpringContextEventPublisher()
           
 
Method Summary
 void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringContextEventPublisher

public SpringContextEventPublisher()
Method Detail

onApplicationEvent

@EventListener
public void onApplicationEvent(org.springframework.context.ApplicationEvent applicationEvent)

setApplicationContext

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


Copyright © 2006-2009 Atlassian. All Rights Reserved.