public class AggregatingRepository extends AbstractRepository
XRepository
that aggregates other repositories.OSGI_METADATA, PROPERTY_MAVEN_REPOSITORY_BASE_URLS, PROPERTY_REPOSITORY_STORAGE_DIR, PROPERTY_REPOSITORY_STORAGE_FILE, SOURCE_REQUIREMENT, TARGET_TYPE
URL
Constructor and Description |
---|
AggregatingRepository() |
Modifier and Type | Method and Description |
---|---|
void |
addRepository(XRepository repo) |
Collection<org.osgi.resource.Capability> |
findProviders(org.osgi.resource.Requirement req)
Find the capabilities that match the specified requirement.
|
List<XRepository> |
getRepositories() |
XRepository |
getRepositoryByName(String name) |
<T extends XRepository> |
getRepositoryByType(Class<T> type) |
void |
removeRepository(XRepository repo) |
findProviders, getName, getOSGiMetaData, getResourceManifest, getTargetResource
public Collection<org.osgi.resource.Capability> findProviders(org.osgi.resource.Requirement req)
XRepository
findProviders
in interface XRepository
findProviders
in class AbstractRepository
req
- The requirements for which matching capabilities
should be returned. Must not be null
.public void addRepository(XRepository repo)
public void removeRepository(XRepository repo)
public List<XRepository> getRepositories()
public XRepository getRepositoryByName(String name)
public <T extends XRepository> T getRepositoryByType(Class<T> type)
Copyright © 2013 JBoss by Red Hat. All rights reserved.