org.mmbase.module.builders.vwms
Interface VwmInterface

All Superinterfaces:
MMBaseObserver
All Known Subinterfaces:
VwmServiceInterface
All Known Implementing Classes:
Vwm

public interface VwmInterface
extends MMBaseObserver

Virtual Web Master interface. A VWM should implement this interface. The routines defined here are entry routines for initializing a VWM, associating listeners (clients) with the VWM, and managing changes in local and remote nodes. Note: This interface defines a few methods also defined by the MMBaseObserver interface. Maybe it should extend it?

Version:
5-Apr-2001
Author:
Daniel Ockeloen, Pierre van Rooden (javadocs)

Method Summary
 boolean addClient(VwmCallBackInterface client)
          Add a client to the listen queue of the wvm.
 void init(MMObjectNode node, Vwms Vwms)
          Initialize the Vwm.
 boolean releaseClient(VwmCallBackInterface client)
          Release a client from the listen queue of the wvm.
 
Methods inherited from interface org.mmbase.module.core.MMBaseObserver
nodeLocalChanged, nodeRemoteChanged
 

Method Detail

init

public void init(MMObjectNode node,
                 Vwms Vwms)
Initialize the Vwm.
Parameters:
vwmnode -  
Vwms - The VWMs builder. It is not really necessary as this is the same as the parent attribute of vwmnode.

addClient

public boolean addClient(VwmCallBackInterface client)
Add a client to the listen queue of the wvm.
Parameters:
client - The client-object to add
Returns:
true if the client was added, false if it already existed in the queue.

releaseClient

public boolean releaseClient(VwmCallBackInterface client)
Release a client from the listen queue of the wvm.
Parameters:
client - The client-object to release
Returns:
true if the client was released, false if it did not exist in the queue.


MMBase build 1.6.5.20030923