org.codehaus.dna
Interface Active


public interface Active

Components should implement this interface if they need to be initialize resources at startup or deallocate resources during shutdown.

If the initialize() method is invoked upon a component then the container must invoke the dispose() even if the initialize() throws an Exception.

Version:
$Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $

Method Summary
 void dispose()
          Dispose the component.
 void initialize()
          Initialialize the component.
 

Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Initialialize the component. This method gives the component the ability to perform processing or allocate any resources before the component becomes operational.

Throws:
java.lang.Exception - if unable to initialize component.

dispose

public void dispose()
             throws java.lang.Exception
Dispose the component. This method gives the component the ability to perform processing or deallocate any resources before the component is destroyed.

Throws:
java.lang.Exception - if unable to dispose component.


Copyright © 2003-2004 Codehaus. All Rights Reserved.