Class AbstractMetadataFactory
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractMetadataFactory
- Direct Known Subclasses:
DiscoveredEndpointDescriptionFactory
,ServiceInfoFactory
Abstract superclass for metadata factories...i.e. implementers of
IServiceInfoFactory
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected EndpointDescription
decodeEndpointDescription
(IServiceProperties discoveredServiceProperties) decodeList
(IServiceProperties props, String name) protected Long
decodeLong
(IServiceProperties props, String name) protected void
decodeNonStandardServiceProperties
(IServiceProperties props, Map<String, Object> result) protected void
decodeOSGiProperties
(IServiceProperties props, Map osgiProperties) protected String
decodeString
(IServiceProperties props, String name) protected void
encodeList
(IServiceProperties props, String name, List<String> list) protected void
encodeLong
(IServiceProperties result, String name, Long value) protected void
encodeNonStandardServiceProperties
(Map<String, Object> properties, IServiceProperties result) protected void
encodeOSGiServiceProperties
(EndpointDescription endpointDescription, IServiceProperties result) protected void
encodeServiceProperties
(EndpointDescription endpointDescription, IServiceProperties result) protected void
encodeString
(IServiceProperties props, String name, String value) protected void
protected void
logWarning
(String methodName, String message, Throwable t)
-
Field Details
-
LIST_SEPARATOR
- See Also:
-
-
Constructor Details
-
AbstractMetadataFactory
public AbstractMetadataFactory()
-
-
Method Details
-
encodeString
-
decodeString
-
encodeLong
-
decodeLong
-
encodeList
-
decodeList
-
decodeOSGiProperties
-
decodeEndpointDescription
protected EndpointDescription decodeEndpointDescription(IServiceProperties discoveredServiceProperties) - Parameters:
discoveredServiceProperties
- discovered service properties- Returns:
- org.osgi.service.remoteserviceadmin.EndpointDescription endpoint description decoded from service p properties
- Since:
- 3.0
-
encodeOSGiServiceProperties
protected void encodeOSGiServiceProperties(EndpointDescription endpointDescription, IServiceProperties result) - Parameters:
endpointDescription
- endpoint description to encoderesult
- service properties to add encoded endpoint description properties to- Since:
- 3.0
-
encodeServiceProperties
protected void encodeServiceProperties(EndpointDescription endpointDescription, IServiceProperties result) - Parameters:
endpointDescription
- endpoint description to encoderesult
- service properties to add encoded endpoint description properties to- Since:
- 3.0
-
encodeNonStandardServiceProperties
protected void encodeNonStandardServiceProperties(Map<String, Object> properties, IServiceProperties result) -
decodeNonStandardServiceProperties
protected void decodeNonStandardServiceProperties(IServiceProperties props, Map<String, Object> result) -
logWarning
-
logError
-
close
public void close()
-