net.larsan.norna.base
Interface Initializable


public interface Initializable

An initializable service signals that it is interested in initialization parameters from the framework. The exact specification of these parameters are up to the framework implementations and they might come from a command line, request URL, file or database.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
InitParameters

Method Summary
 void destroy()
          Destroy this service.
 void init(InitParameters param)
          Initialize module.
 

Method Detail

init

public void init(InitParameters param)
          throws UnavailableException
Initialize module. The parameters passed in to this methods are thread safe and most probably immutable and defensivly copied.

Parameters:
param - Initialization parameters
Throws:
UnavailableException - If initialization failed

destroy

public void destroy()
Destroy this service. This is guarrantied to be the last method call by the framework on the service.