mirror of https://github.com/apache/archiva.git
more autowiring
This commit is contained in:
parent
b0550f3fcf
commit
be20d16cfd
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue