service.exported.* property and must contain the corresponding
service.imported.* ones.
The service.intents property must contain the intents provided by the
service itself combined with the intents added by the exporting distribution
provider. Qualified intents appear fully expanded on this property.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final List | |
| private final Map | |
| private static final String | |
| private static final int | |
| private final long |
| Access | Constructor and Description |
|---|---|
| public | EndpointDescription(Map<String, ?>
The map from which to create the Endpoint Description.
The keys in the map must be type properties)String and, since the
keys are case insensitive, there must be no duplicates with case
variation.Create an Endpoint Description from a Map. |
| public | EndpointDescription(final ServiceReference<?>
A service reference that can be exported. reference, final Map<String, ?> Map of properties. This argument can be properties)null.
The keys in the map must be type String and, since the
keys are case insensitive, there must be no duplicates with case
variation.Create an Endpoint Description based on a Service Reference and a Map of properties. |
| Modifier and Type | Method and Description |
|---|---|
| private static void | append(StringBuffer
Receiving StringBuffer. sb, Object[] Object array to append to the specified StringBuffer. value)Append the specified Object array to the specified StringBuffer. |
| private void | |
| private static <T> List | |
| public boolean | Returns: true if object is a EndpointDescription
and is equal to this object; false otherwise.The other)EndpointDescription object to be compared.Overrides java. Compares this |
| public List | Returns: An unmodifiable list of the configuration types used for the associated endpoint and optionally synonyms.Returns the configuration types. |
| public String | Returns: Remote Framework UUID, ornull if this endpoint is not
associated with an OSGi framework having a framework UUID.Return the framework UUID for the remote service, if present. |
| public String | Returns: The id of the endpoint, nevernull. The returned value
has leading and trailing whitespace removed.Returns the endpoint's id. The id is an opaque id for an endpoint. |
| public List | Returns: An unmodifiable list of expanded intents that are provided by this endpoint.Return the list of intents implemented by this endpoint. |
| public List | Returns: An unmodifiable list of Java interface names implemented by this endpoint.Provide the list of interfaces implemented by the exported service. |
| public Version | Returns: The version of the specified package orVersion.emptyVersion if the package has no version in
this Endpoint Description.The name of the package for which a version is
requested. packageName)Provide the version of the given package name. |
| public Map | Returns: An unmodifiable map referring to the properties of this Endpoint Description.Returns all endpoint properties. |
| public long | Returns: Service id of a service or 0 if this Endpoint Description does not relate to an OSGi service.Returns the service id for the service exported through this endpoint. |
| private List | Returns: An unmodifiable listThe property key)Reads a 'String+' property from the properties map, which may be of type String, String[] or Collection<String> and returns it as an unmodifiable List. |
| public int | Returns: An integer which is a hash code value for this object.Overrides java. Returns a hash code value for the object. |
| public boolean | Returns: True if this endpoint description points to the same service as the otherThe Endpoint Description to look at other)Answers if this Endpoint Description refers to the same service instance as the given Endpoint Description. |
| public boolean | |
| public String | Returns: String form of this EndpointDescription.Overrides java. Returns the string representation of this EndpointDescription. |
| private long | Returns: The value of the property or 0 if the property is not set.The name of the property propName)Verify and obtain a required long property. |
| private List | Returns: A list with the interface names.Verify and obtain the interface list from the properties. |
| private String | Returns: The value of the property ornull if the property is not
set.The name of the property propName)Verify and obtain a required String property. |
| frameworkUUID | back to summary |
|---|---|
| private final String frameworkUUID | |
| id | back to summary |
|---|---|
| private final String id | |
| interfaces | back to summary |
|---|---|
| private final List<String> interfaces | |
| properties | back to summary |
|---|---|
| private final Map<String, Object> properties | |
| SERVICE_EXPORTED_ | back to summary |
|---|---|
| private static final String SERVICE_EXPORTED_ | |
| SERVICE_EXPORTED_length | back to summary |
|---|---|
| private static final int SERVICE_EXPORTED_length | |
| serviceId | back to summary |
|---|---|
| private final long serviceId | |
| EndpointDescription | back to summary |
|---|---|
| public EndpointDescription(Map<String, ?> properties) Create an Endpoint Description from a Map.
The
| |
| EndpointDescription | back to summary |
|---|---|
| public EndpointDescription(final ServiceReference<?> reference, final Map<String, ?> properties) Create an Endpoint Description based on a Service Reference and a Map of properties. The properties in the map take precedence over the properties in the Service Reference.
This method will automatically set the
The
| |
| append | back to summary |
|---|---|
| private static void append(StringBuffer sb, Object[] value) Append the specified Object array to the specified StringBuffer.
| |
| conditionProperties | back to summary |
|---|---|
| private void conditionProperties(Map<String, Object> props) Condition the properties. | |
| emptyList | back to summary |
|---|---|
private static <T> List
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Compares this An Endpoint Description is considered to be equal to another Endpoint Description if their ids are equal. | |
| getConfigurationTypes | back to summary |
|---|---|
| public List Returns the configuration types.
A distribution provider exports a service with an endpoint. This endpoint
uses some kind of communications protocol with a set of configuration
parameters. There are many different types but each endpoint is
configured by only one configuration type. However, a distribution
provider can be aware of different configuration types and provide
synonyms to increase the change a receiving distribution provider can
create a connection to this endpoint.
This value of the configuration types is stored in the
| |
| getFrameworkUUID | back to summary |
|---|---|
| public String getFrameworkUUID() Return the framework UUID for the remote service, if present.
The value of the remote framework UUID is stored in the
| |
| getId | back to summary |
|---|---|
| public String getId() Returns the endpoint's id.
The id is an opaque id for an endpoint. No two different endpoints must
have the same id. Two Endpoint Descriptions with the same id must
represent the same endpoint.
The value of the id is stored in the
| |
| getIntents | back to summary |
|---|---|
| public List Return the list of intents implemented by this endpoint.
The intents are based on the service.intents on an imported service,
except for any intents that are additionally provided by the importing
distribution provider. All qualified intents must have been expanded.
This value of the intents is stored in the
| |
| getInterfaces | back to summary |
|---|---|
| public List Provide the list of interfaces implemented by the exported service.
The value of the interfaces is derived from the | |
| getPackageVersion | back to summary |
|---|---|
| public Version getPackageVersion(String packageName) Provide the version of the given package name.
The version is encoded by prefixing the given package name with
endpoint.package.version.com.acmeThe value of this property is in String format and will be converted to a Version object by this method.
| |
| getProperties | back to summary |
|---|---|
| public Map Returns all endpoint properties. | |
| getServiceId | back to summary |
|---|---|
| public long getServiceId() Returns the service id for the service exported through this endpoint.
This is the service id under which the framework has registered the
service. This field together with the Framework UUID is a globally unique
id for a service.
The value of the remote service id is stored in the
| |
| getStringPlusProperty | back to summary |
|---|---|
| private List Reads a 'String+' property from the properties map, which may be of type String, String[] or Collection<String> and returns it as an unmodifiable List. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the object.
| |
| isSameService | back to summary |
|---|---|
| public boolean isSameService(EndpointDescription other) Answers if this Endpoint Description refers to the same service instance as the given Endpoint Description. Two Endpoint Descriptions point to the same service if they have the same id or their framework UUIDs and remote service ids are equal.
| |
| matches | back to summary |
|---|---|
| public boolean matches(String filter) Tests the properties of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of this EndpointDescription. | |
| verifyLongProperty | back to summary |
|---|---|
| private long verifyLongProperty(String propName) Verify and obtain a required long property.
| |
| verifyObjectClassProperty | back to summary |
|---|---|
| private List Verify and obtain the interface list from the properties.
| |
| verifyStringProperty | back to summary |
|---|---|
| private String verifyStringProperty(String propName) Verify and obtain a required String property.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | elements()
Implements abstract java. Returns an enumeration of the values in this dictionary. |
| public V | get(Object
a key in this dictionary.
key)null if the key is not mapped to any value in
this dictionary.Implements abstract java. Returns the value to which the key is mapped in this dictionary. |
| public boolean | isEmpty()
Implements abstract java. Tests if this dictionary maps no keys to value. |
| public Enumeration | keys()
Implements abstract java. Returns an enumeration of the keys in this dictionary. |
| public V | put(K
the hashtable key. key, V the value. value)Implements abstract java. Maps the specified |
| public V | remove(Object
the key that needs to be removed. key)Implements abstract java. Removes the |
| public int | size()
Implements abstract java. Returns the number of entries (distinct keys) in this dictionary. |
| public String |
| wrapped | back to summary |
|---|---|
| private final Map<K, V> wrapped | |
| UnmodifiableDictionary | back to summary |
|---|---|
| pack-priv UnmodifiableDictionary(Map<K, V> wrapped) | |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract java. Doc from java. Returns an enumeration of the values in this dictionary. The general
contract for the
| |
| get | back to summary |
|---|---|
| public V get(Object key) Implements abstract java. Doc from java. Returns the value to which the key is mapped in this dictionary.
The general contract for the | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract java. Doc from java. Tests if this dictionary maps no keys to value. The general contract
for the
| |
| keys | back to summary |
|---|---|
| public Enumeration Implements abstract java. Doc from java. Returns an enumeration of the keys in this dictionary. The general
contract for the keys method is that an
| |
| put | back to summary |
|---|---|
| public V put(K key, V value) Implements abstract java. Doc from java. Maps the specified
If this dictionary already contains an entry for the specified
If this dictionary does not already have an entry
for the specified
The
| |
| remove | back to summary |
|---|---|
| public V remove(Object key) Implements abstract java. Doc from java. Removes the | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Doc from java. Returns the number of entries (distinct keys) in this dictionary.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |