public class EndpointDescriptionLocator extends java.lang.Object implements IEndpointDescriptionLocator
IDiscoveryLocator
.Modifier and Type | Class and Description |
---|---|
class |
EndpointDescriptionLocator.EndpointEventListenerHolder |
class |
EndpointDescriptionLocator.EndpointListenerHolder |
Constructor and Description |
---|
EndpointDescriptionLocator(org.osgi.framework.BundleContext context) |
public EndpointDescriptionLocator(org.osgi.framework.BundleContext context)
public void start()
public void close()
public IDiscoveryAdvertiser[] getDiscoveryAdvertisers()
public IServiceInfoFactory getServiceInfoFactory()
public IDiscoveredEndpointDescriptionFactory getDiscoveredEndpointDescriptionFactory()
protected EndpointDescriptionLocator.EndpointListenerHolder[] getMatchingEndpointListenerHolders(EndpointDescription description)
protected EndpointDescriptionLocator.EndpointEventListenerHolder[] getMatchingEndpointEventListenerHolders(EndpointDescription description, int type)
description
- descriptiontype
- typepublic EndpointDescriptionLocator.EndpointEventListenerHolder[] getMatchingEndpointEventListenerHolders(org.osgi.framework.ServiceReference[] refs, EndpointDescription description, int type)
refs
- service referencesdescription
- descriptiontype
- typepublic EndpointDescriptionLocator.EndpointListenerHolder[] getMatchingEndpointListenerHolders(org.osgi.framework.ServiceReference[] refs, EndpointDescription description)
public IServiceID getNetworkDiscoveredServiceID(EndpointDescription endpointDescription)
IEndpointDescriptionLocator
getNetworkDiscoveredServiceID
in interface IEndpointDescriptionLocator
endpointDescription
- endpoint descriptionnull
if no associated serviceIDpublic void discoverEndpoint(EndpointDescription endpointDescription)
IEndpointDescriptionLocator
discoverEndpoint
in interface IEndpointDescriptionLocator
endpointDescription
- must not be nullpublic void updateEndpoint(EndpointDescription endpointDescription)
IEndpointDescriptionLocator
updateEndpoint
in interface IEndpointDescriptionLocator
endpointDescription
- must not be nullpublic void undiscoverEndpoint(EndpointDescription endpointDescription)
IEndpointDescriptionLocator
undiscoverEndpoint
in interface IEndpointDescriptionLocator
endpointDescription
- must not be nullpublic EndpointDescription[] getDiscoveredEndpoints()
IEndpointDescriptionLocator
getDiscoveredEndpoints
in interface IEndpointDescriptionLocator