org.apache.felix.framework.wiring
Class BundleCapabilityImpl
java.lang.Object
org.apache.felix.framework.wiring.BundleCapabilityImpl
- All Implemented Interfaces:
- BundleCapability
- Direct Known Subclasses:
- HostedCapability
public class BundleCapabilityImpl
- extends Object
- implements BundleCapability
VERSION_ATTR
public static final String VERSION_ATTR
- See Also:
- Constant Field Values
BundleCapabilityImpl
public BundleCapabilityImpl(BundleRevision revision,
String namespace,
Map<String,String> dirs,
Map<String,Object> attrs)
getRevision
public BundleRevision getRevision()
- Description copied from interface:
BundleCapability
- Returns the bundle revision declaring this capability.
- Specified by:
getRevision in interface BundleCapability
- Returns:
- The bundle revision declaring this capability.
getNamespace
public String getNamespace()
- Description copied from interface:
BundleCapability
- Returns the name space of this capability.
- Specified by:
getNamespace in interface BundleCapability
- Returns:
- The name space of this capability.
getDirectives
public Map<String,String> getDirectives()
- Description copied from interface:
BundleCapability
- Returns the directives of this capability.
- Specified by:
getDirectives in interface BundleCapability
- Returns:
- An unmodifiable map of directive names to directive values for
this capability, or an empty map if this capability has no
directives.
getAttributes
public Map<String,Object> getAttributes()
- Description copied from interface:
BundleCapability
- Returns the attributes of this capability.
- Specified by:
getAttributes in interface BundleCapability
- Returns:
- An unmodifiable map of attribute names to attribute values for
this capability, or an empty map if this capability has no
attributes.
isAttributeMandatory
public boolean isAttributeMandatory(String name)
getUses
public List<String> getUses()
isIncluded
public boolean isIncluded(String name)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.