Class OSGiCapabilityAdapter
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.OSGiCapabilityAdapter
-
- All Implemented Interfaces:
Capability
public class OSGiCapabilityAdapter extends java.lang.Object implements Capability
-
-
Field Summary
-
Fields inherited from interface org.apache.felix.bundlerepository.Capability
BUNDLE, EXECUTIONENVIRONMENT, FRAGMENT, PACKAGE, SERVICE
-
-
Constructor Summary
Constructors Constructor Description OSGiCapabilityAdapter(org.osgi.resource.Capability capability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.lang.String>getDirectives()Return the directives of this capability.java.lang.StringgetName()Return the name of the capability.Property[]getProperties()Return the properties of this capabilityjava.util.Map<java.lang.String,java.lang.Object>getPropertiesAsMap()Return the map of properties.inthashCode()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getName
public java.lang.String getName()
Description copied from interface:CapabilityReturn the name of the capability.- Specified by:
getNamein interfaceCapability
-
getProperties
public Property[] getProperties()
Description copied from interface:CapabilityReturn the properties of this capability- Specified by:
getPropertiesin interfaceCapability- Returns:
-
getPropertiesAsMap
public java.util.Map<java.lang.String,java.lang.Object> getPropertiesAsMap()
Description copied from interface:CapabilityReturn the map of properties.- Specified by:
getPropertiesAsMapin interfaceCapability- Returns:
- a Map
-
getDirectives
public java.util.Map<java.lang.String,java.lang.String> getDirectives()
Description copied from interface:CapabilityReturn the directives of this capability. The returned map can not be modified.- Specified by:
getDirectivesin interfaceCapability- Returns:
- a Map of directives or an empty map there are no directives.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-