jestr.examples.example6
Class MyInitializer

java.lang.Object
  extended byjestr.examples.example6.MyInitializer
All Implemented Interfaces:
Initializer

public class MyInitializer
extends java.lang.Object
implements Initializer

Author:
David Gilliland

Constructor Summary
MyInitializer()
           
 
Method Summary
 void postInitialize(Factory factory, java.util.Properties props, java.io.File file)
           This method is called after all properties have been processed.
 void preInitialize(Factory factory, java.util.Properties props, java.io.File file)
           This method is called before any properties have been processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyInitializer

public MyInitializer()
Method Detail

preInitialize

public void preInitialize(Factory factory,
                          java.util.Properties props,
                          java.io.File file)
                   throws java.lang.Exception
Description copied from interface: Initializer
This method is called before any properties have been processed. This method is permitted to alter the properties through props.putProperty() and any changes will be treated just as though they were present in the original properties.

Specified by:
preInitialize in interface Initializer
Parameters:
factory - - The Factory being initialized.
props - - The Properties being initialized. The method can change this.
file - - The file from which the properties were read, if available. If no file is available, this parameter will be null, so the method must check for nullness before referencing it.
Throws:
java.lang.Exception - - Any exceptions thrown by this method will be caught and logged by the Jestr framework at ERROR level, but Jestr will continue with the initialization and proceed normally.

postInitialize

public void postInitialize(Factory factory,
                           java.util.Properties props,
                           java.io.File file)
                    throws java.lang.Exception
Description copied from interface: Initializer
This method is called after all properties have been processed.

Specified by:
postInitialize in interface Initializer
Parameters:
factory - - The Factory being initialized.
props - - The Properties being initialized. Any changes to this will be ignored.
file - - The file from which the properties were read, if available. If no file is available, this parameter will be null, so the method must check for nullness before referencing it.
Throws:
java.lang.Exception - - Any exceptions thrown by this method will be caught and logged by the Jestr framework at ERROR level, but Jestr will continue with the initialization and proceed normally.


Copyright (c) 2001-2003 - Apache Software Foundation