|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.event.legacy.SpringContextEventPublisher
public class SpringContextEventPublisher
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
Constructor Summary | |
---|---|
SpringContextEventPublisher()
|
Method Summary | |
---|---|
java.lang.Class[] |
getHandledEventClasses()
Determine which event classes this listener is interested in. |
void |
handleEvent(Event event)
Perform some action as a response to a Confluence event. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpringContextEventPublisher()
Method Detail |
---|
public void handleEvent(Event event)
EventListener
handleEvent
in interface EventListener
event
- some event triggered within Confluencepublic java.lang.Class[] getHandledEventClasses()
EventListener
The EventManager performs rudimentary filtering of events by their class. If you want to receive only a subset of events passing through the system, return an array of the Classes you wish to listen for from this method.
Listening for a class will also listen for all its subclasses. (And listening for an interface will listen for any implementation of that interface)
Returning an empty array will allow you to receive every event.
getHandledEventClasses
in interface EventListener
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |