Class BundleCapabilityImpl
java.lang.Object
org.apache.felix.framework.wiring.BundleCapabilityImpl
- All Implemented Interfaces:
BundleCapability,Capability
- Direct Known Subclasses:
FilterImpl.WrapperCapability,ServiceRegistrationImpl.ServiceReferenceImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final BundleRevisionstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionBundleCapabilityImpl(BundleRevision revision, String namespace, Map<String, String> dirs, Map<String, Object> attrs) -
Method Summary
Modifier and TypeMethodDescriptionstatic BundleCapabilityImplcreateFrom(BundleCapabilityImpl capability, Function<Object, Object> cache) Returns the attributes of this capability.Returns the directives of this capability.Returns the namespace of this capability.Returns the resource declaring this capability.Returns the bundle revision declaring this capability.getUses()booleanisAttributeMandatory(String name) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.osgi.resource.Capability
equals, hashCode
-
Field Details
-
VERSION_ATTR
- See Also:
-
m_revision
-
m_namespace
-
m_dirs
-
m_attrs
-
m_uses
-
m_mandatory
-
-
Constructor Details
-
BundleCapabilityImpl
-
-
Method Details
-
createFrom
public static BundleCapabilityImpl createFrom(BundleCapabilityImpl capability, Function<Object, Object> cache) -
getResource
Description copied from interface:BundleCapabilityReturns the resource declaring this capability.This method returns the same value as
BundleCapability.getRevision().- Specified by:
getResourcein interfaceBundleCapability- Specified by:
getResourcein interfaceCapability- Returns:
- The resource declaring this capability.
-
getRevision
Description copied from interface:BundleCapabilityReturns the bundle revision declaring this capability.- Specified by:
getRevisionin interfaceBundleCapability- Returns:
- The bundle revision declaring this capability.
-
getNamespace
Description copied from interface:BundleCapabilityReturns the namespace of this capability.- Specified by:
getNamespacein interfaceBundleCapability- Specified by:
getNamespacein interfaceCapability- Returns:
- The namespace of this capability.
-
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- Returns:
- An unmodifiable map of directive names to directive values for this capability, or an empty map if this capability has no directives.
-
getAttributes
Description copied from interface:BundleCapabilityReturns the attributes of this capability.- Specified by:
getAttributesin interfaceBundleCapability- Specified by:
getAttributesin interfaceCapability- Returns:
- An unmodifiable map of attribute names to attribute values for this capability, or an empty map if this capability has no attributes.
-
isAttributeMandatory
-
getUses
-
toString
-