ozone core API

org.ozoneDB.core.storage
Interface PropertyConfigurable

All Known Implementing Classes:
AbstractReferenceCache, AbstractTrimmingCache, DelayCache, FileStorageFactory, FixedSizeCache, FreeSpaceManager, GZIPStreamFactory, IndexManager, ObjectStreamClasses, ZipStreamFactory

public interface PropertyConfigurable

All classes implementing this interface must provide a public constructor that has one Properties instance, and a String as its only parameters. The string is the prefix this instance should use to get its settings from the properties.

Example:

 
 class Foo {
     public Foo(Properties properties, String prefix);
 // ...
 }

 Properties properties;
 // ...
 Foo foo = new Foo(properties, "org.ozoneDB.bar");
 

If the Foo class has a property ".directory", then the constructor will call properties.getProperty(prefix + ".directory").

Version:
$Id: PropertyConfigurable.java,v 1.1 2004/01/01 20:29:29 leomekenkamp Exp $
Author:
Leo Mekenkamp (mind the anti sp@m)

Method Summary
 java.lang.String getPrefix()
           
 java.util.Collection getPropertyInfos()
          Returns a Collection with all the properties this instance supports.
 

Method Detail

getPropertyInfos

public java.util.Collection getPropertyInfos()

Returns a Collection with all the properties this instance supports.

Returns:
Collection with PropertyInfo elements

getPrefix

public java.lang.String getPrefix()

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.