org.apache.avalon.cornerstone.blocks.masterstore
Class AbstractFilePersistentObjectRepository

java.lang.Object
  extended by org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
      extended by org.apache.avalon.cornerstone.blocks.masterstore.AbstractFilePersistentObjectRepository
All Implemented Interfaces:
org.apache.avalon.cornerstone.services.store.ObjectRepository, org.apache.avalon.cornerstone.services.store.Repository
Direct Known Subclasses:
CDIFilePersistentObjectRepository, File_Persistent_Object_Repository

public abstract class AbstractFilePersistentObjectRepository
extends AbstractFileRepository
implements org.apache.avalon.cornerstone.services.store.ObjectRepository

Version:
$Revision: 1.8 $
Author:
Paul Hammant

Field Summary
 
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
 
Constructor Summary
AbstractFilePersistentObjectRepository()
           
 
Method Summary
 java.lang.Object get(java.lang.String key)
          Get the object associated to the given unique key.
 java.lang.Object get(java.lang.String key, java.lang.ClassLoader classLoader)
           
protected  java.lang.String getExtensionDecorator()
           
 void put(java.lang.String key, java.lang.Object value)
          Store the given object and associates it to the given key
 
Methods inherited from class org.apache.avalon.cornerstone.blocks.masterstore.AbstractFileRepository
containsKey, createChildRepository, decode, encode, getChildRepository, getFile, getInputStream, getOutputStream, initializeChild, list, remove, setDestination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.cornerstone.services.store.ObjectRepository
containsKey, list, remove
 
Methods inherited from interface org.apache.avalon.cornerstone.services.store.Repository
getChildRepository
 

Constructor Detail

AbstractFilePersistentObjectRepository

public AbstractFilePersistentObjectRepository()
Method Detail

get

public java.lang.Object get(java.lang.String key)
Get the object associated to the given unique key.

Specified by:
get in interface org.apache.avalon.cornerstone.services.store.ObjectRepository

get

public java.lang.Object get(java.lang.String key,
                            java.lang.ClassLoader classLoader)
Specified by:
get in interface org.apache.avalon.cornerstone.services.store.ObjectRepository

put

public void put(java.lang.String key,
                java.lang.Object value)
Store the given object and associates it to the given key

Specified by:
put in interface org.apache.avalon.cornerstone.services.store.ObjectRepository

getExtensionDecorator

protected java.lang.String getExtensionDecorator()
Specified by:
getExtensionDecorator in class AbstractFileRepository


Copyright © 2008 Apache Software Foundation. All Rights Reserved.