Kodo 4.1.4 generated on June 22 2007

kodo.conf
Class CacheMarshallerImpl

java.lang.Object
  extended by kodo.conf.CacheMarshallerImpl
All Implemented Interfaces:
CacheMarshaller, Configurable

public class CacheMarshallerImpl
extends Object
implements CacheMarshaller, Configurable

Default CacheMarshaller implementation that writes data to files in a temporary directory. The default temporary directory is the value of System.getProperty("java.io.tmpdir")/System.getProperty("user.name") .

Since:
4.1.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface kodo.conf.CacheMarshaller
CacheMarshaller.ValidationPolicy
 
Constructor Summary
CacheMarshallerImpl()
           
 
Method Summary
 void endConfiguration()
           
 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 setConfiguration(Configuration conf)
           
 void setId(String id)
          The id that this marshaller is responsible for.
static void setTmpDir(File dir)
          Reset the temporary directory used by all CacheMarshallerImpls to dir.
 void setValidationPolicy(String policy)
          The CacheMarshaller.ValidationPolicy that this marshaller should use.
 void startConfiguration()
           
 void store(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

CacheMarshallerImpl

public CacheMarshallerImpl()
Method Detail

setTmpDir

public static void setTmpDir(File dir)
Reset the temporary directory used by all CacheMarshallerImpls to dir. This should be invoked during system configuration only, not at runtime.


load

public Object load()
Description copied from interface: CacheMarshaller
Load and return an instance of the type handled by this marshaller. If the type implements Configurable, then this method will invoke Configurable#setConfiguration(), Configurable.startConfiguration(), and Configurable.endConfiguration() on the instance before returning.

Specified by:
load in interface CacheMarshaller

store

public void store(Object o)
Description copied from interface: CacheMarshaller
Store o into the cache.

Specified by:
store in interface CacheMarshaller

getId

public String getId()
Description copied from interface: CacheMarshaller
The id that this marshaller is responsible for.

Specified by:
getId in interface CacheMarshaller

setId

public void setId(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 interface CacheMarshaller

setValidationPolicy

public void setValidationPolicy(String policy)
                         throws InstantiationException,
                                IllegalAccessException
Description copied from interface: CacheMarshaller
The 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.

Specified by:
setValidationPolicy in interface CacheMarshaller
Throws:
InstantiationException
IllegalAccessException

setConfiguration

public void setConfiguration(Configuration conf)
Specified by:
setConfiguration in interface Configurable

startConfiguration

public void startConfiguration()
Specified by:
startConfiguration in interface Configurable

endConfiguration

public void endConfiguration()
Specified by:
endConfiguration in interface Configurable

Kodo 4.1.4 generated on June 22 2007

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.