|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.silvermoon.moonglow.plugin.BasePlugin
Provides basic services for all Plugin classes, including ResponseListener registration and several fireEvent() methods
| Constructor Summary | |
BasePlugin(java.lang.String pluginId)
|
|
| Method Summary | |
void |
addResponseListener(ResponseListener l)
Register a listener for the Response |
abstract void |
doRequest(int requestId,
Request request)
Perform a request, specifying a unique requestId |
protected void |
fireResponse(int requestId,
Response response)
Plugins should call this method to return the Response to the caller |
protected void |
fireResponseError(int requestId,
java.lang.Throwable error)
Plugins should call this method to return an error to the caller |
java.lang.String |
getId()
Get a unique identifier for this plugin |
void |
removeResponseListener(ResponseListener l)
Deregister a ResponseListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasePlugin(java.lang.String pluginId)
| Method Detail |
public abstract void doRequest(int requestId,
Request request)
throws PluginException
Plugin
doRequest in interface PluginPluginExceptionpublic java.lang.String getId()
Plugin
getId in interface Pluginpublic void addResponseListener(ResponseListener l)
Plugin
addResponseListener in interface Pluginpublic void removeResponseListener(ResponseListener l)
Plugin
removeResponseListener in interface Plugin
protected void fireResponse(int requestId,
Response response)
protected void fireResponseError(int requestId,
java.lang.Throwable error)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||