|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.conf.CacheMarshallerImpl
public class CacheMarshallerImpl
Default CacheMarshaller implementation that writes data
to a specified file and reads data from a specified file or URL.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.openjpa.conf.CacheMarshaller |
|---|
CacheMarshaller.ValidationPolicy |
| Constructor Summary | |
|---|---|
CacheMarshallerImpl()
|
|
| Method Summary | |
|---|---|
void |
endConfiguration()
|
java.lang.String |
getId()
The id that this marshaller is responsible for. |
java.io.File |
getOutputFile()
|
CacheMarshaller.ValidationPolicy |
getValidationPolicy()
|
java.lang.Object |
load()
Load and return an instance of the type handled by this marshaller. |
void |
setConfiguration(Configuration conf)
|
void |
setConsumeSerializationErrors(boolean consume)
|
void |
setId(java.lang.String id)
The id that this marshaller is responsible for. |
void |
setInputResource(java.lang.String resource)
|
void |
setInputURL(java.net.URL url)
|
void |
setOutputFile(java.io.File file)
|
void |
setValidationPolicy(java.lang.String policy)
The CacheMarshaller.ValidationPolicy that this marshaller should use. |
void |
startConfiguration()
|
void |
store(java.lang.Object o)
Store o into the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheMarshallerImpl()
| Method Detail |
|---|
public java.lang.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(java.lang.Object o)
CacheMarshallero into the cache.
store in interface CacheMarshallerpublic void setOutputFile(java.io.File file)
public java.io.File getOutputFile()
public void setInputURL(java.net.URL url)
public void setInputResource(java.lang.String resource)
public void setConsumeSerializationErrors(boolean consume)
public java.lang.String getId()
CacheMarshaller
getId in interface CacheMarshallerpublic void setId(java.lang.String id)
CacheMarshaller
setId in interface CacheMarshaller
public void setValidationPolicy(java.lang.String policy)
throws java.lang.InstantiationException,
java.lang.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 CacheMarshallerjava.lang.InstantiationException
java.lang.IllegalAccessExceptionpublic CacheMarshaller.ValidationPolicy getValidationPolicy()
public void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
endConfiguration in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||