Interface Capability
-
- All Known Implementing Classes:
CapabilityImpl,OSGiCapabilityAdapter
public interface CapabilityA named set of properties representing some capability that is provided by its owner.- Version:
- $Revision: 1.3 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBUNDLEstatic java.lang.StringEXECUTIONENVIRONMENTstatic java.lang.StringFRAGMENTstatic java.lang.StringPACKAGEstatic java.lang.StringSERVICE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
BUNDLE
static final java.lang.String BUNDLE
- See Also:
- Constant Field Values
-
FRAGMENT
static final java.lang.String FRAGMENT
- See Also:
- Constant Field Values
-
PACKAGE
static final java.lang.String PACKAGE
- See Also:
- Constant Field Values
-
SERVICE
static final java.lang.String SERVICE
- See Also:
- Constant Field Values
-
EXECUTIONENVIRONMENT
static final java.lang.String EXECUTIONENVIRONMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
Return the name of the capability.
-
getProperties
Property[] getProperties()
Return the properties of this capability- Returns:
-
getPropertiesAsMap
java.util.Map<java.lang.String,java.lang.Object> getPropertiesAsMap()
Return the map of properties.- Returns:
- a Map
-
getDirectives
java.util.Map<java.lang.String,java.lang.String> getDirectives()
Return the directives of this capability. The returned map can not be modified.- Returns:
- a Map of directives or an empty map there are no directives.
-
-