Steve Souza - 2007-05-29

Logged In: YES
user_id=828052
Originator: NO

This method should initialize the object to its default state, so I propose executing the same code in the static initializer....

public static void reset() {

if (isEnabled())
init();
}

private static void init() {
// enable the factory by default.
factory = debugFactory = enabledFactory = new FactoryEnabled();
disabledFactory = new FactoryDisabled(enabledFactory);
}