| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Configurator
The Configurator interface defines methods for looking up 
 Configurations and for configuring Configurable instances.
 
 call sequence:
 1. The application obtains a Configurator instance (typically from a
 Factory).
 
 2. The application uses the Configurator to configure Configurable 
 instances. 
 The Configurator must lookup the proper Configuration and invoke
 the configure method on the Configurable instance.
 
      // 1. obtain Configurator
      Configurator configurator = OjbConfigurator.getInstance();
 
      // 2. ask Configurator to configure the Configurable instance
      Configurable obj = ...
      configurator.configure(obj);
 
| 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. | 
 void | 
setLogger(Logger loggerInstance)
this method allows to set a logger that tracks configuration events.  | 
| Method Detail | 
|---|
void setLogger(Logger loggerInstance)
loggerInstance - the logger to set
void configure(Configurable target)
               throws ConfigurationException
Configurable instance target.
target - the Configurable instance.
ConfigurationException
Configuration getConfigurationFor(Configurable target)
                                  throws ConfigurationException
Configuration for 
 the Configurable instance target.
target - the Configurable instance.
Configuration.
ConfigurationException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||