org.apache.archiva.repository
Class RepositoryContentFactory

java.lang.Object
  extended by 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


Field Summary
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 Summary
RepositoryContentFactory()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RepositoryContentFactory

public RepositoryContentFactory()
Method Detail

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.