Package org.apache.felix.framework
Class FilterImpl.WrapperCapability
- java.lang.Object
-
- org.apache.felix.framework.wiring.BundleCapabilityImpl
-
- org.apache.felix.framework.FilterImpl.WrapperCapability
-
- All Implemented Interfaces:
BundleCapability,Capability
- Enclosing class:
- FilterImpl
static class FilterImpl.WrapperCapability extends BundleCapabilityImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Mapm_map-
Fields inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
VERSION_ATTR
-
-
Constructor Summary
Constructors Constructor Description WrapperCapability(java.util.Dictionary dict, boolean caseSensitive)WrapperCapability(java.util.Map map)WrapperCapability(ServiceReference sr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.StringgetNamespace()Returns the namespace of this capability.BundleRevisiongetRevision()Returns the bundle revision declaring this capability.java.util.List<java.lang.String>getUses()-
Methods inherited from class org.apache.felix.framework.wiring.BundleCapabilityImpl
getResource, isAttributeMandatory, isIncluded, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.osgi.resource.Capability
equals, hashCode
-
-
-
-
Constructor Detail
-
WrapperCapability
public WrapperCapability(java.util.Map map)
-
WrapperCapability
public WrapperCapability(java.util.Dictionary dict, boolean caseSensitive)
-
WrapperCapability
public WrapperCapability(ServiceReference sr)
-
-
Method Detail
-
getRevision
public BundleRevision getRevision()
Description copied from interface:BundleCapabilityReturns the bundle revision declaring this capability.- Specified by:
getRevisionin interfaceBundleCapability- Overrides:
getRevisionin classBundleCapabilityImpl- Returns:
- The bundle revision declaring this capability.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:BundleCapabilityReturns the namespace of this capability.- Specified by:
getNamespacein interfaceBundleCapability- Specified by:
getNamespacein interfaceCapability- Overrides:
getNamespacein classBundleCapabilityImpl- Returns:
- The namespace of this capability.
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
Description copied from interface:BundleCapabilityReturns the directives of this capability.All capability directives not specified by the
wiring namespaceshave no specified semantics and are considered extra user defined information.- Specified by:
getDirectivesin interfaceBundleCapability- Specified by:
getDirectivesin interfaceCapability- Overrides:
getDirectivesin classBundleCapabilityImpl- 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:BundleCapabilityReturns the attributes of this capability.- Specified by:
getAttributesin interfaceBundleCapability- Specified by:
getAttributesin interfaceCapability- Overrides:
getAttributesin classBundleCapabilityImpl- Returns:
- An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
-
getUses
public java.util.List<java.lang.String> getUses()
- Overrides:
getUsesin classBundleCapabilityImpl
-
-