Permalink
Browse files

NEXUS-5118: Made a plexus component for EventTarget

  • Loading branch information...
1 parent 18270f5 commit 4f87c611d987ad0467f9cc0b46ccc5d03762bd29 @cstamas cstamas committed Aug 2, 2012
View
13 ...ing-extras/src/main/java/org/sonatype/nexus/log/internal/NexusEventSystemEventTarget.java
@@ -12,11 +12,8 @@
*/
package org.sonatype.nexus.log.internal;
-import javax.enterprise.inject.Typed;
-import javax.inject.Inject;
-import javax.inject.Named;
-import javax.inject.Singleton;
-
+import org.codehaus.plexus.component.annotations.Component;
+import org.codehaus.plexus.component.annotations.Requirement;
import org.sonatype.nexus.logback.EventTarget;
import org.sonatype.plexus.appevents.ApplicationEventMulticaster;
@@ -28,13 +25,11 @@
* @author cstamas
* @since 2.2
*/
-@Named
-@Singleton
-@Typed( EventTarget.class )
+@Component( role = EventTarget.class )
public class NexusEventSystemEventTarget
implements EventTarget
{
- @Inject
+ @Requirement
private ApplicationEventMulticaster eventMulticaster;
@Override

0 comments on commit 4f87c61

Please sign in to comment.