public class CacheMarshallerImpl extends Object implements CacheMarshaller, Configurable
CacheMarshaller implementation that writes data
to a specified file and reads data from a specified file or URL.CacheMarshaller.ValidationPolicy| Constructor and Description |
|---|
CacheMarshallerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
endConfiguration() |
String |
getId()
The id that this marshaller is responsible for.
|
File |
getOutputFile() |
CacheMarshaller.ValidationPolicy |
getValidationPolicy() |
Object |
load()
Load and return an instance of the type handled by this marshaller.
|
void |
setConfiguration(Configuration conf) |
void |
setConsumeSerializationErrors(boolean consume) |
void |
setId(String id)
The id that this marshaller is responsible for.
|
void |
setInputResource(String resource) |
void |
setInputURL(URL url) |
void |
setOutputFile(File file) |
void |
setValidationPolicy(String policy)
The
CacheMarshaller.ValidationPolicy that this marshaller should use. |
void |
startConfiguration() |
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 store(Object o)
CacheMarshallero into the cache.store in interface CacheMarshallerpublic void setOutputFile(File file)
public File getOutputFile()
public void setInputURL(URL url)
public void setInputResource(String resource)
public void setConsumeSerializationErrors(boolean consume)
public String getId()
CacheMarshallergetId in interface CacheMarshallerpublic void setId(String id)
CacheMarshallersetId in interface CacheMarshallerpublic void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException
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 CacheMarshallerInstantiationExceptionIllegalAccessExceptionpublic CacheMarshaller.ValidationPolicy getValidationPolicy()
public void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
endConfiguration in interface ConfigurableCopyright © 2006-2014 Apache Software Foundation. All Rights Reserved.