|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.nukesoft.lineproc.DynamicLoadLPContext
The DynamicLoadLPContext provides an internal implementation of the LineProcContext interface. It handles loading of the external LineProc class, as well as context maintnance. For each conversational dialog, there exists exactly one DynamicLoadLPContext. The context will reload a different LineProc if asked to do so by the LineProc. This keeps LineProc manipulation out of the Dialog implementation.
Constructor Summary | |
DynamicLoadLPContext(String defaultLibPath)
Createst a DynamicLoadLPContext object and register a callback and an initial LineProc. |
Method Summary | |
void |
bindCallback(LineProcContextCallback callback)
Binds a local callback. |
void |
bindConversation(String dialogID)
Executes a conversation bind. |
String[] |
getConversations()
Returns a list of active conversations. |
String |
getIdentity()
Returns the dialog identity string. |
String |
getWarningLevel()
Returns the current warning level. |
void |
handleIM(IM message)
Forewards an incomming IM to the LineProc. |
void |
handleWarn(String screenName)
Forewards an incomming warning to the LineProc. |
String |
lastLoadedLineProc()
Returns the lib path to the last loaded line processor. |
void |
loadNewLineProc(String libPath)
Loads a new line processor. |
void |
sendIM(IM message)
Sends an IM. |
void |
sendWarning(String screenName,
boolean anonymous)
Sends a warning. |
void |
shutdown()
Shuts down the current loaded line processor. |
void |
unbindConversation(String dialogID)
Executes a conversation unbind. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DynamicLoadLPContext(String defaultLibPath)
defaultLibPath
- Method Detail |
public void bindCallback(LineProcContextCallback callback)
callback
- The callback.public void sendIM(IM message)
sendIM
in interface LineProcContext
message
- The IM to send.LineProcContext.sendIM(org.nukesoft.core.IM)
public void sendWarning(String screenName, boolean anonymous)
sendWarning
in interface LineProcContext
screenName
- The sceen name to warn.anonymous
- If true, send an anonymous warning.LineProcContext.sendWarning(java.lang.String, boolean)
public void handleIM(IM message)
message
- The message to foreward.public void handleWarn(String screenName)
screenName
- The screen name that did the warning.public void loadNewLineProc(String libPath)
loadNewLineProc
in interface LineProcContext
LineProcContext.loadNewLineProc(java.lang.String)
public String lastLoadedLineProc()
lastLoadedLineProc
in interface LineProcContext
LineProcContext.lastLoadedLineProc()
public String getWarningLevel()
getWarningLevel
in interface LineProcContext
LineProcContext.getWarningLevel()
public String[] getConversations()
getConversations
in interface LineProcContext
LineProcContext.getConversations()
public void bindConversation(String dialogID)
bindConversation
in interface LineProcContext
dialogID
- The dialog to bind to.LineProcContext.bindConversation(java.lang.String)
public void unbindConversation(String dialogID)
unbindConversation
in interface LineProcContext
dialogID
- The dialog to unbind from.LineProcContext.unbindConversation(java.lang.String)
public String getIdentity()
getIdentity
in interface LineProcContext
LineProcContext.getIdentity()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |