org.springframework.integration.context.metadata
Class MapBasedMetadataPersister<T>
java.lang.Object
org.springframework.integration.context.metadata.MapBasedMetadataPersister<T>
- Type Parameters:
T
- the type of objects to be stored as values. Keys will always be String
- All Implemented Interfaces:
- MetadataPersister<T>
public class MapBasedMetadataPersister<T>
- extends Object
- implements MetadataPersister<T>
Simple in-memory implementation of teh MetadataPersister
interface suitable for the use cases where it's assured that component only needs ephemeral metadata.
- Author:
- Josh Long
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapBasedMetadataPersister
public MapBasedMetadataPersister()
write
public void write(String key,
T value)
- Specified by:
write
in interface MetadataPersister<T>
read
public T read(String key)
- Specified by:
read
in interface MetadataPersister<T>
Copyright © 2010. All Rights Reserved.