com.arsdigita.kernel
Class BaseInitializer

java.lang.Object
  extended bycom.arsdigita.kernel.BaseInitializer
All Implemented Interfaces:
Initializer
Direct Known Subclasses:
Initializer, Initializer, Initializer, Initializer, MimeTypeInitializer

public abstract class BaseInitializer
extends Object
implements Initializer

Base initializer for all WAF applications. Extend this class to implement your own initializer. Runs each initializer in a KernelExcursion with system privileges.

Author:
Richard Li

Field Summary
 
Fields inherited from interface com.arsdigita.initializer.Initializer
versionId
 
Constructor Summary
BaseInitializer()
           
 
Method Summary
protected abstract  void doShutdown()
          Code that should be executed at initializer shutdown should go inside this method.
protected abstract  void doStartup()
          Code that should be executed at initializer startup should go inside this method.
abstract  Configuration getConfiguration()
          Returns the configuration object used by this initializer.
 void shutdown()
          Called on shutdown.
 void startup()
          Called on startup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseInitializer

public BaseInitializer()
Method Detail

startup

public void startup()
             throws InitializationException
Description copied from interface: Initializer
Called on startup.

Specified by:
startup in interface Initializer
Throws:
InitializationException

shutdown

public void shutdown()
              throws InitializationException
Description copied from interface: Initializer
Called on shutdown. It's probably not a good idea to depend on this being called.

Specified by:
shutdown in interface Initializer
Throws:
InitializationException

getConfiguration

public abstract Configuration getConfiguration()
Description copied from interface: Initializer
Returns the configuration object used by this initializer.

Specified by:
getConfiguration in interface Initializer

doStartup

protected abstract void doStartup()
Code that should be executed at initializer startup should go inside this method.


doShutdown

protected abstract void doShutdown()
Code that should be executed at initializer shutdown should go inside this method.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC