public class NoOpCacheMarshaller extends Object implements CacheMarshaller
CacheMarshaller that does nothing.CacheMarshaller.ValidationPolicy| Constructor and Description |
|---|
NoOpCacheMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The id that this marshaller is responsible for.
|
Object |
load()
Load and return an instance of the type handled by this marshaller.
|
void |
setId(String id)
The id that this marshaller is responsible for.
|
void |
setValidationPolicy(String policy)
The
CacheMarshaller.ValidationPolicy that this marshaller should use. |
void |
store(Object o)
Store
o into the cache. |
public Object load()
CacheMarshallerConfigurable, then this method will invoke
Configurable.setConfiguration(org.apache.openjpa.lib.conf.Configuration),
Configurable.startConfiguration(), and
Configurable.endConfiguration() on the instance before returning.load in interface CacheMarshallerpublic void setId(String id)
CacheMarshallersetId in interface CacheMarshallerpublic String getId()
CacheMarshallergetId in interface CacheMarshallerpublic void setValidationPolicy(String policy)
CacheMarshallerCacheMarshaller.ValidationPolicy that this marshaller should use.
A value for this parameter is required. The class will be instantiated
via the Configurations mechanism,
ensuring that if the class implements Configurable or
GenericConfigurable, it will be taken
through the appropriate lifecycle.setValidationPolicy in interface CacheMarshallerpublic void store(Object o)
CacheMarshallero into the cache.store in interface CacheMarshallerCopyright © 2006–2022 Apache Software Foundation. All rights reserved.