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.Map
m_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.String
getNamespace()
Returns the namespace of this capability.BundleRevision
getRevision()
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:BundleCapability
Returns the bundle revision declaring this capability.- Specified by:
getRevision
in interfaceBundleCapability
- Overrides:
getRevision
in classBundleCapabilityImpl
- Returns:
- The bundle revision declaring this capability.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:BundleCapability
Returns the namespace of this capability.- Specified by:
getNamespace
in interfaceBundleCapability
- Specified by:
getNamespace
in interfaceCapability
- Overrides:
getNamespace
in classBundleCapabilityImpl
- Returns:
- The namespace 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.All capability directives not specified by the
wiring namespaces
have no specified semantics and are considered extra user defined information.- Specified by:
getDirectives
in interfaceBundleCapability
- Specified by:
getDirectives
in interfaceCapability
- Overrides:
getDirectives
in 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:BundleCapability
Returns the attributes of this capability.- Specified by:
getAttributes
in interfaceBundleCapability
- Specified by:
getAttributes
in interfaceCapability
- Overrides:
getAttributes
in 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:
getUses
in classBundleCapabilityImpl
-
-