@Service(value="repositoryContentFactory#default") public class RepositoryContentFactory extends Object implements org.apache.archiva.components.registry.RegistryListener
Constructor and Description |
---|
RepositoryContentFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterConfigurationChange(org.apache.archiva.components.registry.Registry registry,
String propertyName,
Object propertyValue) |
void |
beforeConfigurationChange(org.apache.archiva.components.registry.Registry registry,
String propertyName,
Object propertyValue) |
ArchivaConfiguration |
getArchivaConfiguration() |
ManagedRepositoryContent |
getManagedRepositoryContent(ManagedRepository mRepo) |
ManagedRepositoryContent |
getManagedRepositoryContent(String repoId)
Get the ManagedRepositoryContent object for the repository Id specified.
|
RemoteRepositoryContent |
getRemoteRepositoryContent(RemoteRepository mRepo) |
RemoteRepositoryContent |
getRemoteRepositoryContent(String repoId) |
List<RepositoryContentProvider> |
getRepositoryContentProviders() |
void |
initialize() |
void |
setArchivaConfiguration(ArchivaConfiguration archivaConfiguration) |
void |
setRepositoryContentProviders(List<RepositoryContentProvider> providers) |
public RepositoryContentFactory()
public ManagedRepositoryContent getManagedRepositoryContent(String repoId) throws 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 ManagedRepositoryContent getManagedRepositoryContent(ManagedRepository mRepo) throws RepositoryException
RepositoryException
public RemoteRepositoryContent getRemoteRepositoryContent(String repoId) throws RepositoryException
RepositoryException
public RemoteRepositoryContent getRemoteRepositoryContent(RemoteRepository mRepo) throws RepositoryException
RepositoryException
public void afterConfigurationChange(org.apache.archiva.components.registry.Registry registry, String propertyName, Object propertyValue)
afterConfigurationChange
in interface org.apache.archiva.components.registry.RegistryListener
public void beforeConfigurationChange(org.apache.archiva.components.registry.Registry registry, String propertyName, Object propertyValue)
beforeConfigurationChange
in interface org.apache.archiva.components.registry.RegistryListener
@PostConstruct public void initialize()
public ArchivaConfiguration getArchivaConfiguration()
public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
public void setRepositoryContentProviders(List<RepositoryContentProvider> providers)
public List<RepositoryContentProvider> getRepositoryContentProviders()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.