I have needed this for a while but just haven't gotten around to it :(

It is necessary in some instances to initialize code external to
Turbine.  For example I have some Singletons that need to be initialized
(Cocoon, Jetspeed, etc) and they also need RunData, etc.  This needs to
happen before *anything* else can happen (turbine operations excluded of
course).

So what I want is a property ("turbine.init.classname") that is multi
valued and when Turbine.java is executed for the first time will use
these properties to initialize external code.  This would only happen
once and right after RunData is obtained.

This is the Interface that these object would use:

---------------------------------------------
public interface TurbineInitable {

  public void init( RunData );

  public boolean isInitialized();

  public void setInitialized( boolean initialized );

}
---------------------------------------------

I am also going to have a Class dedicated to performing the
initialization so that we don't clutter Turbine.java any more:

---------------------------------------------
public class ExternalInitializer {

   public static void process() {
       //method body here.
   }    

}
---------------------------------------------

Thoughts?

-- 
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN:  "Please Open Source Java!"
I just patented "one click e-mail", when you hit the "reply" button you 
own me 50 cents.


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to