com.boylesoftware.cb2.bcmproviders.local
Class LocalProvider

java.lang.Object
  extended bycom.boylesoftware.cb2.bcmproviders.local.LocalProvider
All Implemented Interfaces:
BroadcastMessagingProvider

public class LocalProvider
extends java.lang.Object
implements BroadcastMessagingProvider

Simple stub-like BCM provider, which does not do any actual broadcasting. Instead, it just delivers messages locally, so the "cluster" consists of only one instance - this one.

Version:
$Id: LocalProvider.java,v 1.2 2004/04/08 18:32:23 levahim Exp $
Author:
Lev Himmelfarb

Field Summary
 
Fields inherited from interface com.boylesoftware.cb2.BroadcastMessagingProvider
LOG_SUBSYS
 
Constructor Summary
LocalProvider()
           
 
Method Summary
 void broadcastMessage(java.lang.String channelName, java.io.Serializable messageParam)
          Deliver a message to all local terminals registered for the channel.
 void destroy()
          Destroy the instance.
 void init(ApplicationContext appCtx)
          Initialize the provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalProvider

public LocalProvider()
Method Detail

init

public void init(ApplicationContext appCtx)
Initialize the provider.

Specified by:
init in interface BroadcastMessagingProvider
Parameters:
appCtx - our application context.

destroy

public void destroy()
Destroy the instance.

Specified by:
destroy in interface BroadcastMessagingProvider

broadcastMessage

public void broadcastMessage(java.lang.String channelName,
                             java.io.Serializable messageParam)
Deliver a message to all local terminals registered for the channel. In fact this method just calls processBCMMessage on the application context.

Specified by:
broadcastMessage in interface BroadcastMessagingProvider
Parameters:
channelName - BCM channel name.
messageParam - optional message parameter, may be null.


Copyright © 2002,2003,2004 - Boyle Software, Inc.