org.strutsit.chain.configuration
Class ChainConfigurationBase

java.lang.Object
  extended byorg.strutsit.chain.configuration.ChainConfigurationBase
All Implemented Interfaces:
ChainConfiguration
Direct Known Subclasses:
ChainXMLConfiguration

public abstract class ChainConfigurationBase
extends java.lang.Object
implements ChainConfiguration

Base implementation of a ChainConfiguration-interface.

Since:
JDK 1.4
Version:
$Revision: 1.4 $
Author:
Manfred Wolff

Constructor Summary
ChainConfigurationBase()
           
 
Method Summary
 boolean checkConfiguration()
          Checks the configuration of all chains
abstract  org.apache.commons.chain.Catalog getCatalog()
           
 java.lang.String getConfigFile()
           
 void init()
          Inits the configuration.
 void reread()
          Rereads the configuration.
 void setConfigFile(java.lang.String aConfigFile)
          Sets the configfile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainConfigurationBase

public ChainConfigurationBase()
Method Detail

getConfigFile

public final java.lang.String getConfigFile()
Returns:
Returns the configFile.

setConfigFile

public final void setConfigFile(java.lang.String aConfigFile)
Sets the configfile.

Parameters:
aConfigFile - The configFile to set.

checkConfiguration

public boolean checkConfiguration()
                           throws ChainException
Checks the configuration of all chains

Specified by:
checkConfiguration in interface ChainConfiguration
Returns:
true if all dependencies are all right, false otherwise
Throws:
ChainException

init

public void init()
          throws ChainException
Inits the configuration.

Specified by:
init in interface ChainConfiguration
Throws:
ChainException - if something goes wrong

reread

public void reread()
Rereads the configuration.

Specified by:
reread in interface ChainConfiguration

getCatalog

public abstract org.apache.commons.chain.Catalog getCatalog()
Specified by:
getCatalog in interface ChainConfiguration
Returns:
Returns the catalog.


Copyright © 2004-2005 Struts-it community. All Rights Reserved.