org.eclipse.ecf.osgi.services.remoteserviceadmin
Class AbstractMetadataFactory
java.lang.Object
org.eclipse.ecf.osgi.services.remoteserviceadmin.AbstractMetadataFactory
- Direct Known Subclasses:
- DiscoveredEndpointDescriptionFactory, ServiceInfoFactory
public abstract class AbstractMetadataFactory
- extends java.lang.Object
Abstract superclass for metadata factories...i.e. implementers of
IServiceInfoFactory
.
Method Summary |
void |
close()
|
protected EndpointDescription |
decodeEndpointDescription(IServiceProperties discoveredServiceProperties)
|
protected java.util.List<java.lang.String> |
decodeList(IServiceProperties props,
java.lang.String name)
|
protected java.lang.Long |
decodeLong(IServiceProperties props,
java.lang.String name)
|
protected void |
decodeNonStandardServiceProperties(IServiceProperties props,
java.util.Map<java.lang.String,java.lang.Object> result)
|
protected void |
decodeOSGiProperties(IServiceProperties props,
java.util.Map osgiProperties)
|
protected java.lang.String |
decodeString(IServiceProperties props,
java.lang.String name)
|
protected void |
encodeList(IServiceProperties props,
java.lang.String name,
java.util.List<java.lang.String> list)
|
protected void |
encodeLong(IServiceProperties result,
java.lang.String name,
java.lang.Long value)
|
protected void |
encodeNonStandardServiceProperties(java.util.Map<java.lang.String,java.lang.Object> properties,
IServiceProperties result)
|
protected void |
encodeOSGiServiceProperties(EndpointDescription endpointDescription,
IServiceProperties result)
|
protected void |
encodeServiceProperties(EndpointDescription endpointDescription,
IServiceProperties result)
|
protected void |
encodeString(IServiceProperties props,
java.lang.String name,
java.lang.String value)
|
protected void |
logError(java.lang.String methodName,
java.lang.String message,
java.lang.Throwable t)
|
protected void |
logWarning(java.lang.String methodName,
java.lang.String message,
java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LIST_SEPARATOR
protected static final java.lang.String LIST_SEPARATOR
- See Also:
- Constant Field Values
AbstractMetadataFactory
public AbstractMetadataFactory()
encodeString
protected void encodeString(IServiceProperties props,
java.lang.String name,
java.lang.String value)
decodeString
protected java.lang.String decodeString(IServiceProperties props,
java.lang.String name)
encodeLong
protected void encodeLong(IServiceProperties result,
java.lang.String name,
java.lang.Long value)
decodeLong
protected java.lang.Long decodeLong(IServiceProperties props,
java.lang.String name)
encodeList
protected void encodeList(IServiceProperties props,
java.lang.String name,
java.util.List<java.lang.String> list)
decodeList
protected java.util.List<java.lang.String> decodeList(IServiceProperties props,
java.lang.String name)
decodeOSGiProperties
protected void decodeOSGiProperties(IServiceProperties props,
java.util.Map osgiProperties)
decodeEndpointDescription
protected EndpointDescription decodeEndpointDescription(IServiceProperties discoveredServiceProperties)
- Since:
- 3.0
encodeOSGiServiceProperties
protected void encodeOSGiServiceProperties(EndpointDescription endpointDescription,
IServiceProperties result)
- Since:
- 3.0
encodeServiceProperties
protected void encodeServiceProperties(EndpointDescription endpointDescription,
IServiceProperties result)
- Since:
- 3.0
encodeNonStandardServiceProperties
protected void encodeNonStandardServiceProperties(java.util.Map<java.lang.String,java.lang.Object> properties,
IServiceProperties result)
decodeNonStandardServiceProperties
protected void decodeNonStandardServiceProperties(IServiceProperties props,
java.util.Map<java.lang.String,java.lang.Object> result)
logWarning
protected void logWarning(java.lang.String methodName,
java.lang.String message,
java.lang.Throwable t)
logError
protected void logError(java.lang.String methodName,
java.lang.String message,
java.lang.Throwable t)
close
public void close()