Package org.apache.openjpa.conf
Class NoOpCacheMarshaller
- java.lang.Object
-
- org.apache.openjpa.conf.NoOpCacheMarshaller
-
- All Implemented Interfaces:
CacheMarshaller
public class NoOpCacheMarshaller extends java.lang.Object implements CacheMarshaller
Implementation ofCacheMarshaller
that does nothing.- Since:
- 1.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.openjpa.conf.CacheMarshaller
CacheMarshaller.ValidationPolicy
-
-
Constructor Summary
Constructors Constructor Description NoOpCacheMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
The id that this marshaller is responsible for.java.lang.Object
load()
Load and return an instance of the type handled by this marshaller.void
setId(java.lang.String id)
The id that this marshaller is responsible for.void
setValidationPolicy(java.lang.String policy)
TheCacheMarshaller.ValidationPolicy
that this marshaller should use.void
store(java.lang.Object o)
Storeo
into the cache.
-
-
-
Method Detail
-
load
public java.lang.Object load()
Description copied from interface:CacheMarshaller
Load and return an instance of the type handled by this marshaller. If the type implementsConfigurable
, then this method will invokeConfigurable.setConfiguration(org.apache.openjpa.lib.conf.Configuration)
,Configurable.startConfiguration()
, andConfigurable.endConfiguration()
on the instance before returning.- Specified by:
load
in interfaceCacheMarshaller
-
setId
public void setId(java.lang.String id)
Description copied from interface:CacheMarshaller
The id that this marshaller is responsible for. A value for this parameter is required.- Specified by:
setId
in interfaceCacheMarshaller
-
getId
public java.lang.String getId()
Description copied from interface:CacheMarshaller
The id that this marshaller is responsible for.- Specified by:
getId
in interfaceCacheMarshaller
-
setValidationPolicy
public void setValidationPolicy(java.lang.String policy)
Description copied from interface:CacheMarshaller
TheCacheMarshaller.ValidationPolicy
that this marshaller should use. A value for this parameter is required. The class will be instantiated via theConfigurations
mechanism, ensuring that if the class implementsConfigurable
orGenericConfigurable
, it will be taken through the appropriate lifecycle.- Specified by:
setValidationPolicy
in interfaceCacheMarshaller
-
store
public void store(java.lang.Object o)
Description copied from interface:CacheMarshaller
Storeo
into the cache.- Specified by:
store
in interfaceCacheMarshaller
-
-