more autowiring

This commit is contained in:
Brett Porter 2014-07-30 18:06:15 +10:00
parent b0550f3fcf
commit be20d16cfd
2 changed files with 3 additions and 1 deletions

View File

@ -82,6 +82,7 @@ import org.apache.commons.lang.StringUtils;
import org.apache.maven.index.context.IndexingContext; import org.apache.maven.index.context.IndexingContext;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import javax.inject.Inject; import javax.inject.Inject;
@ -144,6 +145,7 @@ public class DefaultRepositoriesService
protected RepositorySessionFactory repositorySessionFactory; protected RepositorySessionFactory repositorySessionFactory;
@Inject @Inject
@Autowired(required = false)
protected List<RepositoryListener> listeners = new ArrayList<RepositoryListener>(); protected List<RepositoryListener> listeners = new ArrayList<RepositoryListener>();
@Inject @Inject

View File

@ -80,7 +80,7 @@ public class DefaultMetadataResolver
@Inject @Inject
@Autowired(required = false) @Autowired(required = false)
private List<RepositoryListener> listeners; private List<RepositoryListener> listeners = new ArrayList<>();
/** /**
* Cache used for namespaces * Cache used for namespaces