@Service(value="repositoryContentFactory#default") public class RepositoryContentFactory extends Object implements org.apache.archiva.redback.components.registry.RegistryListener
Modifier and Type | Field and Description |
---|---|
private org.springframework.context.ApplicationContext |
applicationContext |
private ArchivaConfiguration |
archivaConfiguration |
private Map<String,ManagedRepositoryContent> |
managedContentMap |
private ManagedRepositoryAdmin |
managedRepositoryAdmin |
private Map<String,RemoteRepositoryContent> |
remoteContentMap |
private RemoteRepositoryAdmin |
remoteRepositoryAdmin |
Constructor and Description |
---|
RepositoryContentFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterConfigurationChange(org.apache.archiva.redback.components.registry.Registry registry,
String propertyName,
Object propertyValue) |
void |
beforeConfigurationChange(org.apache.archiva.redback.components.registry.Registry registry,
String propertyName,
Object propertyValue) |
ArchivaConfiguration |
getArchivaConfiguration() |
ManagedRepositoryContent |
getManagedRepositoryContent(String repoId)
Get the ManagedRepositoryContent object for the repository Id specified.
|
RemoteRepositoryContent |
getRemoteRepositoryContent(String repoId) |
void |
initialize() |
private void |
initMaps() |
void |
setArchivaConfiguration(ArchivaConfiguration archivaConfiguration) |
@Inject private ArchivaConfiguration archivaConfiguration
@Inject private ManagedRepositoryAdmin managedRepositoryAdmin
@Inject private RemoteRepositoryAdmin remoteRepositoryAdmin
@Inject private org.springframework.context.ApplicationContext applicationContext
private final Map<String,ManagedRepositoryContent> managedContentMap
private final Map<String,RemoteRepositoryContent> remoteContentMap
public RepositoryContentFactory()
public ManagedRepositoryContent getManagedRepositoryContent(String repoId) throws RepositoryNotFoundException, RepositoryException
repoId
- the repository id to fetch.RepositoryNotFoundException
- if the repository id does not exist within the configuration.RepositoryException
- the repository content object cannot be loaded due to configuration issue.public RemoteRepositoryContent getRemoteRepositoryContent(String repoId) throws RepositoryNotFoundException, RepositoryException
public void afterConfigurationChange(org.apache.archiva.redback.components.registry.Registry registry, String propertyName, Object propertyValue)
afterConfigurationChange
in interface org.apache.archiva.redback.components.registry.RegistryListener
public void beforeConfigurationChange(org.apache.archiva.redback.components.registry.Registry registry, String propertyName, Object propertyValue)
beforeConfigurationChange
in interface org.apache.archiva.redback.components.registry.RegistryListener
@PostConstruct public void initialize()
private void initMaps()
public ArchivaConfiguration getArchivaConfiguration()
public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.