howto register event listener

View: New views
2 Messages — Rating Filter:   Alert me  

howto register event listener

by Steffen Stundzig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I need to register an eventlistener into the EventMulticaster. It's
simply by injecting:

@Inject
private ApplicationEventMulticaster applicationEventMulticaster;

and adding my eventListener. But as I see in the "howto write
plugins"-blog in 1.4 someone shouldn't use some plexus stuff, such as
the event thing.

Is there another prefered way of doing this?

regards

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...


Re: howto register event listener

by Alin Dreghiciu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The simplest way and I guess the preferred way to implement a listener in Nexus 1.4 will be to implement EventInspector.
So, your listener will just have to implement "org.sonatype.nexus.proxy.events.EventInspector".

On Wed, Sep 2, 2009 at 9:30 AM, Steffen Stundzig <steffen.stundzig@...> wrote:
Hi,

I need to register an eventlistener into the EventMulticaster. It's
simply by injecting:

@Inject
private ApplicationEventMulticaster applicationEventMulticaster;

and adding my eventListener. But as I see in the "howto write
plugins"-blog in 1.4 someone shouldn't use some plexus stuff, such as
the event thing.

Is there another prefered way of doing this?

regards

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...




--
Alin Dreghiciu