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.AbstractMetadataFactoryLIST_SEPARATOR
 
- 
 - 
Constructor SummaryConstructors Constructor Description DiscoveredEndpointDescriptionFactory()
 - 
Method SummaryAll 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.AbstractMetadataFactorydecodeEndpointDescription, decodeList, decodeLong, decodeNonStandardServiceProperties, decodeOSGiProperties, decodeString, encodeList, encodeLong, encodeNonStandardServiceProperties, encodeOSGiServiceProperties, encodeServiceProperties, encodeString, logError, logWarning
 
- 
 
- 
- 
- 
Method Detail- 
createDiscoveredEndpointDescriptionpublic 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 interface- IDiscoveredEndpointDescriptionFactory
- Parameters:
- locator- the locator responsible for the discoveredServiceInfo. Must not be- null.
- discoveredServiceInfo- the discovered service info. Must not be- null.
- 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.
 
 - 
removeDiscoveredEndpointDescriptionpublic 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 interface- IDiscoveredEndpointDescriptionFactory
- Parameters:
- locator- the locator responsible for the discoveredServiceInfo. Must not be- null.
- serviceID- the discovered service ID. Must not be- null.
- 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.
 
 - 
createEndpointDescriptionprotected EndpointDescription createEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo) 
 - 
createDiscoveredEndpointDescriptionprotected DiscoveredEndpointDescription createDiscoveredEndpointDescription(IDiscoveryLocator locator, IServiceInfo discoveredServiceInfo, EndpointDescription endpointDescription) 
 - 
closepublic void close() - Overrides:
- closein class- AbstractMetadataFactory
 
 - 
removeDiscoveredEndpointDescriptionpublic boolean removeDiscoveredEndpointDescription(EndpointDescription endpointDescription) Description copied from interface:IDiscoveredEndpointDescriptionFactoryRemove the DiscoveredEndpointDescription associated with the given endpointDescription.- Specified by:
- removeDiscoveredEndpointDescriptionin interface- IDiscoveredEndpointDescriptionFactory
- Parameters:
- endpointDescription- that was previously associated with a DiscoveredEndpointDescription (via- IDiscoveredEndpointDescriptionFactory.createDiscoveredEndpointDescription(IDiscoveryLocator, IServiceInfo)to be removed. Must not be- null.
- Returns:
- trueif actually removed,- falseif nothing was removed.
 
 - 
removeAllDiscoveredEndpointDescriptionspublic void removeAllDiscoveredEndpointDescriptions() Description copied from interface:IDiscoveredEndpointDescriptionFactoryRemove all DiscoveredEndpointDescription from this factory.- Specified by:
- removeAllDiscoveredEndpointDescriptionsin interface- IDiscoveredEndpointDescriptionFactory
 
 
- 
 
-