Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2014-08-14 15:26:21 -0400
committerIgor Fedorenko2014-08-14 15:27:06 -0400
commit50b31d07987b9588fa520550a58d7ad8f19fa579 (patch)
treefe406e42f18153c63f842db53b1a40021673fa4e
parent0c300fad88b4c1c169c615f5f946eb6c1c8f069f (diff)
downloadm2e-core-50b31d07987b9588fa520550a58d7ad8f19fa579.tar.gz
m2e-core-50b31d07987b9588fa520550a58d7ad8f19fa579.tar.xz
m2e-core-50b31d07987b9588fa520550a58d7ad8f19fa579.zip
made EclipseRepositoryListener singleton again
Change-Id: Ibe44b5fa6b02aa63866a4617bc59498b8362efe0 Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java
index 7366a766..9dd6c6ec 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/embedder/EclipseRepositoryListener.java
@@ -13,6 +13,8 @@ package org.eclipse.m2e.core.internal.embedder;
import java.io.File;
+import javax.inject.Singleton;
+
import org.eclipse.aether.AbstractRepositoryListener;
import org.eclipse.aether.RepositoryEvent;
import org.eclipse.aether.RepositoryListener;
@@ -26,6 +28,7 @@ import org.eclipse.m2e.core.embedder.ILocalRepositoryListener;
/**
* Dispatches local repository events to registered ILocalRepositoryListener's
*/
+@Singleton
public class EclipseRepositoryListener extends AbstractRepositoryListener implements RepositoryListener {
public static final String ROLE_HINT = "EclipseRepositoryListener";

Back to the top