In trying to develop a NotificationType plugin I see that EventListener is now deprecated. In it's place appears to be ListenerHandler and ListenerInvoker and those classes under "com.atlassian.event.spi". Are there any examples on how to wire and/or use these in place of EventListener?
Community moderators have prevented the ability to post new answers.
Use com.atlassian.event.api.EventPublisher#register on your listener object and annotate callback methods with @EventListener, e.g.:
@EventListener
public void handleEvent(BuildCompletedEvent event) {}
That's very awesome. Thanks for pointing me in the right direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In playing around I can't seem to figure out how to get an event based on kicking a build/plan. I simply want a callback when a plan is kicked not when it's jobs are kicked. I browsed through the events here, http://docs.atlassian.com/atlassian-bamboo/4.1/com/atlassian/bamboo/event/, and have tried all that make sense but nothing seems to be working. Any ideas/suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to close the loop here: there does not appear to be an "Event" for kicking a build plan but implementing a PreChainAction does do the trick. I was simply looking for something to follow the "Event" model here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.