com.atlassian.event.legacy
Class SpringContextEventPublisher
java.lang.Object
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
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 |
SpringContextEventPublisher
public SpringContextEventPublisher()
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.