public class CapabilityImpl extends AbstractCapabilityRequirement implements org.osgi.resource.Capability
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.String> |
mandatory |
attributes, directives, namespace, resource
Constructor and Description |
---|
CapabilityImpl(org.osgi.resource.Resource resource,
org.osgi.resource.Capability capability)
Create a capability based on an existing capability, providing the resource.
|
CapabilityImpl(org.osgi.resource.Resource res,
java.lang.String ns,
java.util.Map<java.lang.String,java.lang.String> dirs,
java.util.Map<java.lang.String,java.lang.Object> attrs)
Create a capability.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAttributeMandatory(java.lang.String name) |
getAttributes, getDirectives, getNamespace, getResource, toString
public CapabilityImpl(org.osgi.resource.Resource res, java.lang.String ns, java.util.Map<java.lang.String,java.lang.String> dirs, java.util.Map<java.lang.String,java.lang.Object> attrs)
res
- The resource associated with the capability.ns
- The namespace of the capability.attrs
- The attributes of the capability.dirs
- The directives of the capability.public CapabilityImpl(org.osgi.resource.Resource resource, org.osgi.resource.Capability capability)
capability
- The capability to base the new requirement on.resource
- The resource to be associated with the capability