org.apache.ojb.broker.util.configuration.impl
Class OjbConfigurator

java.lang.Object
  extended byorg.apache.ojb.broker.util.configuration.impl.OjbConfigurator
All Implemented Interfaces:
Configurator

public class OjbConfigurator
extends java.lang.Object
implements Configurator

The Configurator for the OJB system. Implemented as a singleton.

Version:
$Id: OjbConfigurator.java,v 1.5 2003/03/06 14:10:38 arminw Exp $
Author:
Thomas Mahler

Method Summary
 void configure(Configurable target)
          configures the Configurable instance target.
 Configuration getConfigurationFor(Configurable target)
          looks up the proper Configuration for the Configurable instance target.
static OjbConfigurator getInstance()
          returns the singleton instance.
 void setLogger(Logger logger)
          this method allows to set a logger that tracks configuration events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OjbConfigurator getInstance()
returns the singleton instance.

Returns:
the singleton instance.

setLogger

public void setLogger(Logger logger)
Description copied from interface: Configurator
this method allows to set a logger that tracks configuration events.

Specified by:
setLogger in interface Configurator
Parameters:
logger - the logger to set
See Also:
Configurator.setLogger(Logger)

configure

public void configure(Configurable target)
               throws ConfigurationException
Description copied from interface: Configurator
configures the Configurable instance target.

Specified by:
configure in interface Configurator
Parameters:
target - the Configurable instance.
Throws:
ConfigurationException
See Also:
Configurator.configure(Configurable)

getConfigurationFor

public Configuration getConfigurationFor(Configurable target)
                                  throws ConfigurationException
Description copied from interface: Configurator
looks up the proper Configuration for the Configurable instance target.

Specified by:
getConfigurationFor in interface Configurator
Parameters:
target - the Configurable instance.
Returns:
the resultingConfiguration.
Throws:
ConfigurationException
See Also:
Configurator.getConfigurationFor(Configurable)


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14