net.larsan.norna.base
Interface Loadable


public interface Loadable

A service in the Norna framework is loaded using its Context. For service whishing to use other services or interract with the framework Namespace this interface must be implemented.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
net.larsan.norna.Context

Method Summary
 void load(Context context)
          Load service with a context.
 void unload()
          Unload the service context.
 

Method Detail

load

public void load(Context context)
Load service with a context. This method is called only if the service is not loaded or have been un-loaded. This call should change the status of the Service to loaded.

Parameters:
context - Service context, never null

unload

public void unload()
Unload the service context. The method is usually called before the serivce is taken out of action and is guarrantied to be proceeded by a stop call or a new call to load.

Inparticular a service must take care never to access its context after this method has been called since that context object possibly will be destroyed.