public interface Repository
resources
.
Repositories may be registered as services and may be used as inputs to an
Environment.findProviders(Requirement)
operation.
Repositories registered as services may be filtered using standard service
properties.Modifier and Type | Field and Description |
---|---|
static String |
DISPLAY_NAME
Service attribute to provide a human readable name for this repository
|
static String |
ID
Service attribute to uniquely identify this repository
|
static String |
NAME
Service attribute to define the name of this repository
|
Modifier and Type | Method and Description |
---|---|
Map<org.osgi.framework.resource.Requirement,Collection<org.osgi.framework.resource.Capability>> |
findProviders(Collection<? extends org.osgi.framework.resource.Requirement> requirements)
Find any capabilities that match the supplied requirements.
|
Collection<org.osgi.framework.resource.Capability> |
findProviders(org.osgi.framework.resource.Requirement requirement)
Find any capabilities that match the supplied requirement.
|
static final String ID
static final String NAME
static final String DISPLAY_NAME
Collection<org.osgi.framework.resource.Capability> findProviders(org.osgi.framework.resource.Requirement requirement)
Environment.findProviders(org.osgi.framework.resource.Requirement)
for a discussion on matching.requirement
- The requirement that should be matchedNullPointerException
- if the requirement is nullMap<org.osgi.framework.resource.Requirement,Collection<org.osgi.framework.resource.Capability>> findProviders(Collection<? extends org.osgi.framework.resource.Requirement> requirements)
Environment.findProviders(org.osgi.framework.resource.Requirement)
for a discussion on matching.requirements
- the requirements that should be matchedNullPointerException
- if requirements is nullCopyright © 2012 JBoss by Red Hat. All Rights Reserved.