org.apache.archiva.repository
Class RepositoryContentFactory
java.lang.Object
org.apache.archiva.repository.RepositoryContentFactory
- All Implemented Interfaces:
- org.apache.archiva.redback.components.registry.RegistryListener
@Service(value="repositoryContentFactory#default")
public class RepositoryContentFactory
- extends Object
- implements org.apache.archiva.redback.components.registry.RegistryListener
RepositoryContentRequest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
archivaConfiguration
@Inject
private ArchivaConfiguration archivaConfiguration
managedRepositoryAdmin
@Inject
private ManagedRepositoryAdmin managedRepositoryAdmin
remoteRepositoryAdmin
@Inject
private RemoteRepositoryAdmin remoteRepositoryAdmin
applicationContext
@Inject
private org.springframework.context.ApplicationContext applicationContext
managedContentMap
private final Map<String,ManagedRepositoryContent> managedContentMap
remoteContentMap
private final Map<String,RemoteRepositoryContent> remoteContentMap
RepositoryContentFactory
public RepositoryContentFactory()
getManagedRepositoryContent
public ManagedRepositoryContent getManagedRepositoryContent(String repoId)
throws RepositoryNotFoundException,
RepositoryException
- Get the ManagedRepositoryContent object for the repository Id specified.
- Parameters:
repoId
- the repository id to fetch.
- Returns:
- the ManagedRepositoryContent object associated with the repository id.
- Throws:
RepositoryNotFoundException
- if the repository id does not exist within the configuration.
RepositoryException
- the repository content object cannot be loaded due to configuration issue.
getRemoteRepositoryContent
public RemoteRepositoryContent getRemoteRepositoryContent(String repoId)
throws RepositoryNotFoundException,
RepositoryException
- Throws:
RepositoryNotFoundException
RepositoryException
afterConfigurationChange
public void afterConfigurationChange(org.apache.archiva.redback.components.registry.Registry registry,
String propertyName,
Object propertyValue)
- Specified by:
afterConfigurationChange
in interface org.apache.archiva.redback.components.registry.RegistryListener
beforeConfigurationChange
public void beforeConfigurationChange(org.apache.archiva.redback.components.registry.Registry registry,
String propertyName,
Object propertyValue)
- Specified by:
beforeConfigurationChange
in interface org.apache.archiva.redback.components.registry.RegistryListener
initialize
@PostConstruct
public void initialize()
initMaps
private void initMaps()
getArchivaConfiguration
public ArchivaConfiguration getArchivaConfiguration()
setArchivaConfiguration
public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.