public interface CacheMarshaller
Modifier and Type | Interface and Description |
---|---|
static interface |
CacheMarshaller.ValidationPolicy
Validation policies are responsible for computing whether or not a
cached data structure is valid for the current context.
|
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. |
Object load()
Configurable
, then this method will invoke
Configurable.setConfiguration(org.apache.openjpa.lib.conf.Configuration)
,
Configurable.startConfiguration()
, and
Configurable.endConfiguration()
on the instance before returning.void store(Object o)
o
into the cache.void setId(String id)
String getId()
void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException
CacheMarshaller.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.Copyright © 2006–2020 Apache Software Foundation. All rights reserved.