aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-repository-api/src/main
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-08-22 15:11:34 +0000
committerOlivier Lamy <olamy@apache.org>2011-08-22 15:11:34 +0000
commit30ebe43f5972c545bb3a1c4b4059a1e5b0684aeb (patch)
tree82dfa998021b624d2183cef99692fe5f027d6326 /archiva-modules/metadata/metadata-repository-api/src/main
parent0c7626a1374f2e3d08b75261d866e7601e6c5682 (diff)
downloadarchiva-30ebe43f5972c545bb3a1c4b4059a1e5b0684aeb.tar.gz
archiva-30ebe43f5972c545bb3a1c4b4059a1e5b0684aeb.zip
simplify inject of bean list
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1160293 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-repository-api/src/main')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java
index 27940a9f0..e6fb6888e 100644
--- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java
+++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java
@@ -82,17 +82,18 @@ public class DefaultMetadataResolver
/**
* plexus.requirement role="org.apache.archiva.repository.events.RepositoryListener"
*/
+ @Inject
private List<RepositoryListener> listeners;
- @Inject
- private ApplicationContext applicationContext;
+ //@Inject
+ //private ApplicationContext applicationContext;
@PostConstruct
private void initialize()
{
- listeners =
- new ArrayList<RepositoryListener>( applicationContext.getBeansOfType( RepositoryListener.class ).values() );
+ //listeners =
+ // new ArrayList<RepositoryListener>( applicationContext.getBeansOfType( RepositoryListener.class ).values() );
}
public ProjectVersionMetadata resolveProjectVersion( RepositorySession session, String repoId, String namespace,