public interface RepositoryStorage
Modifier and Type | Method and Description |
---|---|
org.jboss.osgi.resolver.XResource |
addResource(org.jboss.osgi.resolver.XResource resource)
Add the given resource to storage
|
Collection<org.osgi.resource.Capability> |
findProviders(org.osgi.resource.Requirement requirement)
Find the capabilities that match the specified requirement.
|
XRepository |
getRepository()
Get the associated reposistory;
|
RepositoryReader |
getRepositoryReader()
Get the repository reader for this storage
|
org.jboss.osgi.resolver.XResource |
getResource(org.jboss.osgi.resolver.XIdentityCapability icap)
Get the resource for the given identity capability.
|
boolean |
removeResource(org.jboss.osgi.resolver.XResource resource)
Remove a the given resource from the cache.
|
XRepository getRepository()
Collection<org.osgi.resource.Capability> findProviders(org.osgi.resource.Requirement requirement)
requirement
- The requirements for which matching capabilities should be returned. Must not be null
.RepositoryReader getRepositoryReader()
org.jboss.osgi.resolver.XResource getResource(org.jboss.osgi.resolver.XIdentityCapability icap)
org.jboss.osgi.resolver.XResource addResource(org.jboss.osgi.resolver.XResource resource) throws RepositoryStorageException
resource
- The resource to addRepositoryStorageException
- If there is a problem storing the resourceboolean removeResource(org.jboss.osgi.resolver.XResource resource) throws RepositoryStorageException
resource
- The resource to removeRepositoryStorageException
- If there is a problem removing the resource from storageCopyright © 2013 JBoss by Red Hat. All rights reserved.