T - the typepublic class SerializerBasedRegistrySerializingStrategy<T> extends AbstractRegistrySerializingStrategy<T,StreamBasedObjectsAccess>
AbstractRegistrySerializingStrategy.ObjectsAccessobjectsAccess| Constructor and Description |
|---|
SerializerBasedRegistrySerializingStrategy(StreamBasedObjectsAccess objectsAccess,
com.cedarsoft.serialization.Serializer<T,OutputStream,InputStream> serializer) |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(String id)
Deserialize the object
|
com.cedarsoft.serialization.Serializer<T,OutputStream,InputStream> |
getSerializer() |
void |
remove(T object,
String id) |
void |
serialize(T object,
String id)
Serialize the object
|
void |
update(T object,
String id) |
deserialize, getObjectsAccesspublic SerializerBasedRegistrySerializingStrategy(@Nonnull StreamBasedObjectsAccess objectsAccess, @Nonnull com.cedarsoft.serialization.Serializer<T,OutputStream,InputStream> serializer)
@Nonnull public T deserialize(@Nonnull String id) throws IOException
RegistrySerializingStrategyid - the idIOException - if there is an io problempublic void serialize(@Nonnull T object, @Nonnull String id) throws IOException
RegistrySerializingStrategyobject - the object to serializeid - the idIOException - if there is an io problempublic void update(@Nonnull T object, @Nonnull String id) throws IOException
IOExceptionpublic void remove(@Nonnull T object, @Nonnull String id) throws IOException
IOException@Nonnull public com.cedarsoft.serialization.Serializer<T,OutputStream,InputStream> getSerializer()
Copyright © 2007–2016 cedarsoft GmbH. All rights reserved.