public abstract class AbstractRepository extends Object implements XRepository
XRepository that does nothing.PROPERTY_MAVEN_REPOSITORY_BASE_URLS, PROPERTY_REPOSITORY_STORAGE_DIR, PROPERTY_REPOSITORY_STORAGE_FILEURL| Constructor and Description |
|---|
AbstractRepository() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
adapt(Class<T> type)
Adapt this repository tor the given type
|
Map<org.osgi.resource.Requirement,Collection<org.osgi.resource.Capability>> |
findProviders(Collection<? extends org.osgi.resource.Requirement> reqs)
Find the capabilities that match the specified requirements.
|
abstract Collection<org.osgi.resource.Capability> |
findProviders(org.osgi.resource.Requirement req)
Find the capabilities that match the specified requirement.
|
String |
getName()
Get the name for this repository
|
protected OSGiMetaData |
getOSGiMetaData(XResource resource) |
protected OSGiMetaData |
getOSGiMetaDataFromManifest(XResource resource) |
protected XResourceBuilder<XResource> |
getResourceBuilder(XResource resource) |
protected Manifest |
getResourceManifest(XResource resource) |
protected XResource |
getTargetResource(XResource resource)
Convert the given resource into the target resource type.
|
public String getName()
XRepositorygetName in interface XRepositorypublic <T> T adapt(Class<T> type)
XRepositoryadapt in interface XRepositorypublic Map<org.osgi.resource.Requirement,Collection<org.osgi.resource.Capability>> findProviders(Collection<? extends org.osgi.resource.Requirement> reqs)
RepositoryfindProviders in interface Repositoryreqs - The requirements for which matching capabilities
should be returned. Must not be null.public abstract Collection<org.osgi.resource.Capability> findProviders(org.osgi.resource.Requirement req)
XRepositoryfindProviders in interface XRepositoryreq - The requirements for which matching capabilities
should be returned. Must not be null.protected XResource getTargetResource(XResource resource) throws Exception
Exceptionprotected XResourceBuilder<XResource> getResourceBuilder(XResource resource)
protected OSGiMetaData getOSGiMetaData(XResource resource) throws IOException
IOExceptionprotected OSGiMetaData getOSGiMetaDataFromManifest(XResource resource) throws IOException
IOExceptionprotected Manifest getResourceManifest(XResource resource) throws IOException
IOExceptionCopyright © 2014 JBoss by Red Hat. All Rights Reserved.