net.sf.eos.config
Class Configured

java.lang.Object
  extended by net.sf.eos.config.Configured
All Implemented Interfaces:
Configurable
Direct Known Subclasses:
AbstractKeyGenerator, CommonNameResolver, DefaultEosQuery, DictionaryBasedEntityIdKeyGenerator, DirectorySupplier, LuceneDocumentCreator, LuceneEosLookup, SearcherSupplier, Sentencer, Serializer, TextBuilder, TokenizerSupplier

public abstract class Configured
extends Object
implements Configurable

Support class for configurable objects.

Author:
Sascha Kohlmann

Constructor Summary
Configured()
          Construct a Configured.
 
Method Summary
 void configure(Configuration config)
          Creates a copy of the given Configuration and stores it in a manner that getConfiguration() can reach it.
protected  Configuration getConfiguration()
          Returns the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configured

public Configured()
Construct a Configured.

Method Detail

configure

public void configure(Configuration config)
Creates a copy of the given Configuration and stores it in a manner that getConfiguration() can reach it.

If override the method first call super in the overriding method.

Specified by:
configure in interface Configurable
Parameters:
config - the Configuration to copy.

getConfiguration

protected final Configuration getConfiguration()
Returns the configuration.

Returns:
the configuration holder or null


Copyright © 2008. All Rights Reserved.