Spring Integration

org.springframework.integration.context.metadata
Class MapBasedMetadataPersister<T>

java.lang.Object
  extended by 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

Constructor Summary
MapBasedMetadataPersister()
           
 
Method Summary
 T read(String key)
           
 void write(String key, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapBasedMetadataPersister

public MapBasedMetadataPersister()
Method Detail

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>

Spring Integration

Copyright © 2010. All Rights Reserved.