com.anabas.sharedlet
Interface SharedletSessionLogic


public interface SharedletSessionLogic

The base interface for all unique sharedlet session logic. Sharedlet session logic should store contain session logic among a distributed set of sharedlet instances. It is normally the server side logic in a traditional client/server architecture.

The session logic will be managed by the SharedletManager and will be loaded and run by a session logic container (application server) in a client/server implementation.

A sharedlet may have 1 or more session logic which encapsulate 1 or more pieces of logic. For example, the text chat sharedlet may have 1 session logic that adapts it to Yahoo! text chat and another session logic that adapts it to AOL text chat.


Method Summary
 void init(Context ctx)
          Initialize the logic.
 void resume()
          Resume the service.
 void shutdown()
          Shutdown the service.
 void suspend()
          Suspend the service.
 

Method Detail

init

public void init(Context ctx)
Initialize the logic. The service should not initialize until this method is invoked.

When initialized, it will be given the context under which the session logic should run. This context will be the same context as what the Sharedlet & ShardletView sees. Through this context, the session logic can get resources commonly available to sharedlets in this session(meeting).

Parameters:
ctx - The context in which the session logic runs.

suspend

public void suspend()
Suspend the service. The service should go into dormant state and utilize no resources although it may hold on to resources it already has.

shutdown

public void shutdown()
Shutdown the service. The service should relinquish all resources that it holds.

resume

public void resume()
Resume the service. Called after suspend is invoked. If the service is not shutdown, resume should have no effect.