org.exist.collections
Class CollectionConfigurationManager

java.lang.Object
  extended byorg.exist.collections.CollectionConfigurationManager

public class CollectionConfigurationManager
extends java.lang.Object

Manages index configurations. Index configurations are stored in a collection hierarchy below /db/system/config. CollectionConfigurationManager is called by Collection to retrieve the CollectionConfiguration instance for a given collection.

Author:
wolf

Field Summary
static java.lang.String CONFIG_COLLECTION
           
 
Constructor Summary
CollectionConfigurationManager(DBBroker broker)
           
 
Method Summary
 void addConfiguration(Txn transaction, DBBroker broker, Collection collection, java.lang.String config)
          Add a new collection configuration.
protected  CollectionConfiguration getConfiguration(DBBroker broker, Collection collection)
          Retrieve the collection configuration instance for the given collection.
protected  void invalidate(java.lang.String collectionPath)
          Called by the collection cache if a collection is removed from the cache.
protected  void invalidateAll(java.lang.String collectionPath)
          Notify the manager that a collection.xconf file has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_COLLECTION

public static final java.lang.String CONFIG_COLLECTION
See Also:
Constant Field Values
Constructor Detail

CollectionConfigurationManager

public CollectionConfigurationManager(DBBroker broker)
                               throws EXistException
Method Detail

addConfiguration

public void addConfiguration(Txn transaction,
                             DBBroker broker,
                             Collection collection,
                             java.lang.String config)
                      throws CollectionConfigurationException
Add a new collection configuration. The XML document is passed as a string.

Parameters:
broker -
collection - the collection to which the configuration applies.
config - the xconf document as a string.
Throws:
CollectionConfigurationException

getConfiguration

protected CollectionConfiguration getConfiguration(DBBroker broker,
                                                   Collection collection)
                                            throws CollectionConfigurationException
Retrieve the collection configuration instance for the given collection. This creates a new CollectionConfiguration object and recursively scans the collection hierarchy for available configurations.

Parameters:
broker -
collection -
Returns:
Throws:
CollectionConfigurationException

invalidateAll

protected void invalidateAll(java.lang.String collectionPath)
Notify the manager that a collection.xconf file has changed. All cached configurations for the corresponding collection and its sub-collections will be cleared.

Parameters:
collectionPath -

invalidate

protected void invalidate(java.lang.String collectionPath)
Called by the collection cache if a collection is removed from the cache. This will delete the cached configuration instance for this collection.

Parameters:
collectionPath -


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.