|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.chat.WikiChatManagerFactory
public class WikiChatManagerFactory
WikiChatManagerFactory is a singleton class providing management of the WikiChatManagers on a per-WikiEngine basis. Each WikiChatManager adds a single listener to the WikiEngine upon instantiation. This also provides a few convenience methods that locate the WikiChatManager for the engine based on either the WikiEngine or the WikiContext, rather than you having to do so first.
| Method Summary | |
|---|---|
static void |
closeAllManagers()
Closes (interrupts the Threads of) all living WikiChatManagers, in preparation for a WikiEngine shutdown. |
static WikiChatManager |
getManagerForEngine(WikiEngine engine)
Registers the provided WikiEngine with the WikiChatManagerFactory, returning an WikiChatManager specific to that engine. |
static boolean |
hasManagerForEngine(WikiEngine engine)
Returns true if there is a WikiChatManager in the cache for the provided WikiEngine engine. |
protected static boolean |
removeManagerForEngine(WikiChatManager manager)
Removes the provided WikiChatManager from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean hasManagerForEngine(WikiEngine engine)
engine - the WikiEngine used as the cache key.public static void closeAllManagers()
public static WikiChatManager getManagerForEngine(WikiEngine engine)
engine - the WikiEngine backing the event handling.protected static boolean removeManagerForEngine(WikiChatManager manager)
manager - the WikiChatManager to be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||