org.mule.module.spring.objectstore
Class SpringCacheObjectStore<T extends Serializable>

java.lang.Object
  extended by org.mule.module.spring.objectstore.SpringCacheObjectStore<T>
All Implemented Interfaces:
ObjectStore<T>

public class SpringCacheObjectStore<T extends Serializable>
extends Object
implements ObjectStore<T>

Implements an ObjectStore using Spring module cache.


Nested Class Summary
static class SpringCacheObjectStore.ObjectStoreValue<T extends Serializable>
          Provides a place holder to store values inside a Spring cache to be able to save null values.
 
Constructor Summary
SpringCacheObjectStore()
           
 
Method Summary
 boolean contains(Serializable key)
           
 org.springmodules.cache.provider.CacheProviderFacade getCacheProvider()
           
 org.springmodules.cache.CachingModel getCachingModel()
           
 boolean isPersistent()
           
 T remove(Serializable key)
           
 T retrieve(Serializable key)
           
 void setCacheProvider(org.springmodules.cache.provider.CacheProviderFacade cacheProvider)
           
 void setCachingModel(org.springmodules.cache.CachingModel cachingModel)
           
 void store(Serializable key, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringCacheObjectStore

public SpringCacheObjectStore()
Method Detail

contains

public boolean contains(Serializable key)
                 throws ObjectStoreException
Specified by:
contains in interface ObjectStore<T extends Serializable>
Throws:
ObjectStoreException

store

public void store(Serializable key,
                  T value)
           throws ObjectStoreException
Specified by:
store in interface ObjectStore<T extends Serializable>
Throws:
ObjectStoreException

retrieve

public T retrieve(Serializable key)
                                throws ObjectStoreException
Specified by:
retrieve in interface ObjectStore<T extends Serializable>
Throws:
ObjectStoreException

remove

public T remove(Serializable key)
                              throws ObjectStoreException
Specified by:
remove in interface ObjectStore<T extends Serializable>
Throws:
ObjectStoreException

isPersistent

public boolean isPersistent()
Specified by:
isPersistent in interface ObjectStore<T extends Serializable>

getCacheProvider

public org.springmodules.cache.provider.CacheProviderFacade getCacheProvider()

setCacheProvider

public void setCacheProvider(org.springmodules.cache.provider.CacheProviderFacade cacheProvider)

getCachingModel

public org.springmodules.cache.CachingModel getCachingModel()

setCachingModel

public void setCachingModel(org.springmodules.cache.CachingModel cachingModel)


Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.