|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjestr.examples.example6.MyInitializer
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 |
public MyInitializer()
Method Detail |
public void preInitialize(Factory factory, java.util.Properties props, java.io.File file) throws java.lang.Exception
Initializer
props.putProperty()
and any changes will be treated just as though they were present in the original
properties.
preInitialize
in interface Initializer
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.
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.public void postInitialize(Factory factory, java.util.Properties props, java.io.File file) throws java.lang.Exception
Initializer
postInitialize
in interface Initializer
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.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |