diff options
author | Olivier Lamy <olamy@apache.org> | 2011-08-22 15:11:34 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-08-22 15:11:34 +0000 |
commit | 30ebe43f5972c545bb3a1c4b4059a1e5b0684aeb (patch) | |
tree | 82dfa998021b624d2183cef99692fe5f027d6326 /archiva-modules/plugins | |
parent | 0c7626a1374f2e3d08b75261d866e7601e6c5682 (diff) | |
download | archiva-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/plugins')
-rw-r--r-- | archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java index 4ed4c0825..c1bb5cc2b 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java @@ -46,13 +46,14 @@ public class Maven2RepositoryPathTranslator private static final Pattern TIMESTAMP_PATTERN = Pattern.compile( "([0-9]{8}.[0-9]{6})-([0-9]+).*" ); - @Inject - private ApplicationContext applicationContext; + //@Inject + //private ApplicationContext applicationContext; /** * plexus.requirement role="org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider" * see #initialize */ + @Inject private List<ArtifactMappingProvider> artifactMappingProviders; public Maven2RepositoryPathTranslator() @@ -63,8 +64,9 @@ public class Maven2RepositoryPathTranslator @PostConstruct public void initialize() { - artifactMappingProviders = new ArrayList<ArtifactMappingProvider>( - applicationContext.getBeansOfType( ArtifactMappingProvider.class ).values() ); + + //artifactMappingProviders = new ArrayList<ArtifactMappingProvider>( + // applicationContext.getBeansOfType( ArtifactMappingProvider.class ).values() ); } |