org.apache.avalon.cornerstone.blocks.masterstore
Class File_Persistent_Object_Repository
java.lang.Object
org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
org.apache.avalon.cornerstone.blocks.masterstore.AbstractFilePersistentObjectRepository
org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Object_Repository
- All Implemented Interfaces:
- ObjectRepository, Repository, Initializable, Configurable, Contextualizable, LogEnabled
public class File_Persistent_Object_Repository
- extends AbstractFilePersistentObjectRepository
- implements ObjectRepository, Contextualizable, Initializable, Configurable, LogEnabled
This is a simple implementation of persistent object store using
object serialization on the file system.
- Author:
- Stefano Mazzocchi, Federico Barbieri, Paul Hammant
Fields inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository |
BYTE_MASK, DEBUG, HANDLED_URL, HEX_DIGITS, m_baseDirectory, m_destination, m_extension, m_filter, m_name, m_path, monitor |
Methods inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository |
containsKey, createChildRepository, decode, encode, getChildRepository, getFile, getInputStream, getOutputStream, list, remove, setDestination |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
File_Persistent_Object_Repository
public File_Persistent_Object_Repository()
enableLogging
public void enableLogging(Logger logger)
- Specified by:
enableLogging
in interface LogEnabled
initializeChild
protected void initializeChild(AbstractFileRepository child)
throws Exception
- Specified by:
initializeChild
in class AbstractFileRepository
- Throws:
Exception
contextualize
public void contextualize(Context context)
throws ContextException
- Contextualization of the component by the container during
which the working home directory will be provided.
- Specified by:
contextualize
in interface Contextualizable
- Parameters:
context
- the supplied context object
- Throws:
ContextException
initialize
public void initialize()
throws Exception
- Initialization of the component by the container.
- Specified by:
initialize
in interface Initializable
- Throws:
Exception
- if a initialization stage error occurs
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Configuration of the component by the container.
- Specified by:
configure
in interface Configurable
- Parameters:
configuration
- the configuration
- Throws:
ConfigurationException
- if a configuration error occurs
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.