|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.wiki.plugin.assertion.AssertionHandlerFactory
public class AssertionHandlerFactory
AssertionHandlerFactory is a singleton class providing management of the AssertionHandlers on a per-WikiEngine basis. Each AssertionHandler adds a single listener to the WikiEngine upon instantiation. This also provides a few convenience methods that locate the AssertionHandler for the engine based on either the WikiEngine or the WikiContext, rather than you having to do so first.
| Field Summary | |
|---|---|
static String |
IMPLEMENTATION_CLASS
The class name of the default AssertionHandler implementation. |
static String |
PROPERTY_FACTORY_ENABLED
The System property name for the property enabling the creation of AssertionHandlers. |
| Method Summary | |
|---|---|
static AssertionHandler |
getHandlerForEngine(WikiEngine engine)
Registers the provided WikiEngine with the AssertionHandlerFactory, returning an AssertionHandler specific to that engine. |
static void |
setHandlerForEngine(WikiEngine engine,
AssertionHandler handler)
Sets the provided AssertionHandler with the WikiEngine engine, substituting for any existing AssertionHandler that may exist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_FACTORY_ENABLED
public static String IMPLEMENTATION_CLASS
| Method Detail |
|---|
public static AssertionHandler getHandlerForEngine(WikiEngine engine)
engine - the WikiEngine backing the event handling.
public static void setHandlerForEngine(WikiEngine engine,
AssertionHandler handler)
engine - the WikiEngine backing the event handling.handler - the AssertionHandler to be associated with the WikiEngine.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||