Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

plugins.Messenger
Interface PluginChain  view PluginChain download PluginChain.java

All Superinterfaces:
Conversation, MessageSender
All Known Implementing Classes:
DefaultPluginChain

public interface PluginChain
extends Conversation

PluginChain acts as a Proxy between the ChatFrame, Plugins and Conversation. PluginChain manages all plugins that are associated with a Conversation. PluginChain is attached to ChatFrame and Conversation. It intercepts Messages send by the user and fowards the Message to each MessengerPlugin. If a Messenger plugin decides to consume a message a null message is returned. The message will not be forwarded to any other plugins or to Conversation. If no null messages are returned by MessengerPlugins PluginChain forwards messages to Conversation which is responsible for the "physical" send operation via network.


Method Summary
 void addPlugin(MessengerPlugin plugin)
          Adds a MessengerPlugins to the chain
 java.util.List getPlugins()
          Returns all MessengerPlugins currently in this chain
 
Methods inherited from interface plugins.Messenger.Conversation
addConversationListener, getContact, getContacts, getKey, getMessengerEngine, getPartners, removeConversationListener, startConversation, stopConversation
 
Methods inherited from interface plugins.Messenger.MessageSender
invite, send, userTyping
 

Method Detail

addPlugin

public void addPlugin(MessengerPlugin plugin)
Adds a MessengerPlugins to the chain


getPlugins

public java.util.List getPlugins()
Returns all MessengerPlugins currently in this chain