Xindice API
version 1.2m1

org.apache.xindice.util
Interface Configurable

All Known Subinterfaces:
Filer, Indexer, QueryResolver
All Known Implementing Classes:
BTreeFiler, Collection, CollectionManager, FSFiler, HashFiler, LuceneIndexer, MemFiler, MemValueIndexer, NameIndexer, Paged, SimpleConfigurable, SizeableMemFiler, TextQueryResolver, ValueIndexer, XPathQueryResolver, XUpdateQueryResolver

public interface Configurable

Configurable is a simple interface used to pass configuration information to an object. The implementing object is ultimately responsible for maintaining any of that configuration information in any fashion it so desires. Most will create a Configuration instance to manage the data in a consistent, and easy to access fashion.

A Configurable object should be considered 'configured' after receiving a call to setConfig(). No additional configuration activities should be expected of the instance, and so setConfig() should be the last call in any set of configuration commands against an object.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $
See Also:
Configuration

Method Summary
 Configuration getConfig()
          getConfig retrieves the configuration information for the Configurable object instance.
 void setConfig(Configuration config)
          setConfig sets the configuration information for the Configurable object instance.
 

Method Detail

setConfig

public void setConfig(Configuration config)
               throws XindiceException
setConfig sets the configuration information for the Configurable object instance.

Parameters:
config - The configuration Node
Throws:
XindiceException

getConfig

public Configuration getConfig()
getConfig retrieves the configuration information for the Configurable object instance.

Returns:
The configuration Node

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.