|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDiscoveredEndpointDescriptionFactory
Factory for creating DiscoveredEndpointDescription
s. A discovered
endpoint description factory is used by a EndpointDescriptionLocator
to convert a service info (discovered by the locator) into a discovered
endpoint description (instance of DiscoveredEndpointDescription). This
discovered endpoint description is then used by the
EndpointDescriptionLocator
to notify endpoint description listeners
as per section 122.6 of the OSGi Enterprise
Specification OSGi enterprise specification.
If no other instances of this service have been registered, a default
instance of DiscoveredEndpointDescriptionFactory
will be used by the
EndpointDescriptionLocator
. Note that this default instance is
registered with the lowest possible priority, so that if other
IDiscoveredEndpointDescriptionFactory
instances are registered, they
will be preferred/used over the default. This means that those wishing to
customize/control this process of converting IServiceInfo
s to
DiscoveredEndpointDescription
must
IDiscoveredEndpointDescriptionFactory
Integer.MIN_VALUE
EndpointDescriptionLocator
, the
new discovered endpoint description factory will be used.
IServiceInfoFactory
Method Summary | |
---|---|
DiscoveredEndpointDescription |
createDiscoveredEndpointDescription(IDiscoveryLocator locator,
IServiceInfo discoveredServiceInfo)
Create an EndpointDescription for a discovered remote service. |
void |
removeAllDiscoveredEndpointDescriptions()
Remove all DiscoveredEndpointDescription from this factory. |
boolean |
removeDiscoveredEndpointDescription(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)
Remove the DiscoveredEndpointDescription associated with the given endpointDescription. |
DiscoveredEndpointDescription |
removeDiscoveredEndpointDescription(IDiscoveryLocator locator,
IServiceID serviceID)
Remove an EndpointDescription for a previously discovered remote service. |
Method Detail |
---|
DiscoveredEndpointDescription createDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)
null
if no notification should occur.
locator
- the locator responsible for the discoveredServiceInfo. Must
not be null
.discoveredServiceInfo
- the discovered service info. Must not be null
.
null
is returned, no notification should be
performed by the calling code.DiscoveredEndpointDescription removeDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceID serviceID)
null
if no notification should occur.
locator
- the locator responsible for the discoveredServiceInfo. Must
not be null
.serviceId
- the discovered service ID. Must not be null
.
null
is returned, no notification should be performed by the calling
code.boolean removeDiscoveredEndpointDescription(org.osgi.service.remoteserviceadmin.EndpointDescription endpointDescription)
endpointDescription
- that was previously associated with a
DiscoveredEndpointDescription (via
createDiscoveredEndpointDescription(IDiscoveryLocator, IServiceInfo)
to be removed. Must not be null
.
true
if actually removed, false
if
nothing was removed.void removeAllDiscoveredEndpointDescriptions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |