Class DiscoveredEndpointDescriptionFactory
- java.lang.Object
-
- org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractMetadataFactory
-
- org.eclipse.ecf.osgi.services.remoteserviceadmin.DiscoveredEndpointDescriptionFactory
-
- All Implemented Interfaces:
IDiscoveredEndpointDescriptionFactory
public class DiscoveredEndpointDescriptionFactory extends AbstractMetadataFactory implements IDiscoveredEndpointDescriptionFactory
Default implementation ofIDiscoveredEndpointDescriptionFactoryservice.- See Also:
IDiscoveredEndpointDescriptionFactory
-
-
Field Summary
-
Fields inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractMetadataFactory
LIST_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description DiscoveredEndpointDescriptionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DiscoveredEndpointDescriptioncreateDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)Create an EndpointDescription for a discovered remote service.protected DiscoveredEndpointDescriptioncreateDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo, EndpointDescription endpointDescription)protected EndpointDescriptioncreateEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)voidremoveAllDiscoveredEndpointDescriptions()Remove all DiscoveredEndpointDescription from this factory.DiscoveredEndpointDescriptionremoveDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceID serviceID)Remove an EndpointDescription for a previously discovered remote service.booleanremoveDiscoveredEndpointDescription(EndpointDescription endpointDescription)Remove the DiscoveredEndpointDescription associated with the given endpointDescription.-
Methods inherited from class org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractMetadataFactory
decodeEndpointDescription, decodeList, decodeLong, decodeNonStandardServiceProperties, decodeOSGiProperties, decodeString, encodeList, encodeLong, encodeNonStandardServiceProperties, encodeOSGiServiceProperties, encodeServiceProperties, encodeString, logError, logWarning
-
-
-
-
Method Detail
-
createDiscoveredEndpointDescription
public DiscoveredEndpointDescription createDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)
Description copied from interface:IDiscoveredEndpointDescriptionFactoryCreate an EndpointDescription for a discovered remote service. Implementers of this factory service may return the type of EndpointDescription appropriate for the associated distribution system (e.g. ECFEndpointDescription). Implementers should returnnullif no notification should occur.- Specified by:
createDiscoveredEndpointDescriptionin interfaceIDiscoveredEndpointDescriptionFactory- Parameters:
locator- the locator responsible for the discoveredServiceInfo. Must not benull.discoveredServiceInfo- the discovered service info. Must not benull.- Returns:
- DiscoveredEndpointDescription that will be used to notify
EndpointListeners about a new EndpointDescription. If
nullis returned, no notification should be performed by the calling code.
-
removeDiscoveredEndpointDescription
public DiscoveredEndpointDescription removeDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceID serviceID)
Description copied from interface:IDiscoveredEndpointDescriptionFactoryRemove an EndpointDescription for a previously discovered remote service. Implementers of this factory service may return the type of EndpointDescription appropriate for the associated distribution system (e.g. ECFEndpointDescription). Implementers should returnnullif no notification should occur.- Specified by:
removeDiscoveredEndpointDescriptionin interfaceIDiscoveredEndpointDescriptionFactory- Parameters:
locator- the locator responsible for the discoveredServiceInfo. Must not benull.serviceID- the discovered service ID. Must not benull.- Returns:
- EndpointDescription that will be used to notify EndpointListeners
about an undiscovered EndpointDescription. If
nullis returned, no notification should be performed by the calling code.
-
createEndpointDescription
protected EndpointDescription createEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo)
-
createDiscoveredEndpointDescription
protected DiscoveredEndpointDescription createDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo, EndpointDescription endpointDescription)
-
close
public void close()
- Overrides:
closein classAbstractMetadataFactory
-
removeDiscoveredEndpointDescription
public boolean removeDiscoveredEndpointDescription(EndpointDescription endpointDescription)
Description copied from interface:IDiscoveredEndpointDescriptionFactoryRemove the DiscoveredEndpointDescription associated with the given endpointDescription.- Specified by:
removeDiscoveredEndpointDescriptionin interfaceIDiscoveredEndpointDescriptionFactory- Parameters:
endpointDescription- that was previously associated with a DiscoveredEndpointDescription (viaIDiscoveredEndpointDescriptionFactory.createDiscoveredEndpointDescription(IDiscoveryLocator, IServiceInfo)to be removed. Must not benull.- Returns:
trueif actually removed,falseif nothing was removed.
-
removeAllDiscoveredEndpointDescriptions
public void removeAllDiscoveredEndpointDescriptions()
Description copied from interface:IDiscoveredEndpointDescriptionFactoryRemove all DiscoveredEndpointDescription from this factory.- Specified by:
removeAllDiscoveredEndpointDescriptionsin interfaceIDiscoveredEndpointDescriptionFactory
-
-