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 java.lang.Object
- implements BundleCapability
Constructor Summary |
BundleCapabilityImpl(BundleRevision revision,
java.lang.String namespace,
java.util.Map<java.lang.String,java.lang.String> dirs,
java.util.Map<java.lang.String,java.lang.Object> attrs)
|
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the attributes of this capability. |
java.util.Map<java.lang.String,java.lang.String> |
getDirectives()
Returns the directives of this capability. |
java.lang.String |
getNamespace()
Returns the name space of this capability. |
BundleRevision |
getRevision()
Returns the bundle revision declaring this capability. |
java.util.List<java.lang.String> |
getUses()
|
boolean |
isAttributeMandatory(java.lang.String name)
|
boolean |
isIncluded(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VERSION_ATTR
public static final java.lang.String VERSION_ATTR
- See Also:
- Constant Field Values
BundleCapabilityImpl
public BundleCapabilityImpl(BundleRevision revision,
java.lang.String namespace,
java.util.Map<java.lang.String,java.lang.String> dirs,
java.util.Map<java.lang.String,java.lang.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 java.lang.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 java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.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(java.lang.String name)
getUses
public java.util.List<java.lang.String> getUses()
isIncluded
public boolean isIncluded(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012. All Rights Reserved.