|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.velocity.app.event.EventCartridge
public class EventCartridge
'Package' of event handlers...
| Constructor Summary | |
|---|---|
EventCartridge()
|
|
| Method Summary | |
|---|---|
boolean |
addEventHandler(EventHandler ev)
Adds an event handler(s) to the Cartridge. |
boolean |
attachToContext(Context context)
Attached the EventCartridge to the context Final because not something one should mess with lightly :) |
Object |
methodException(Class claz,
String method,
Exception e)
Implementation of MethodExceptionEventHandler method methodException(). |
Object |
referenceInsert(String reference,
Object value)
Implementation of ReferenceInsertionEventHandler method referenceInsert(). |
boolean |
removeEventHandler(EventHandler ev)
Removes an event handler(s) from the Cartridge. |
boolean |
shouldLogOnNullSet(String lhs,
String rhs)
Implementation of NullSetEventHandler method shouldLogOnNullSet(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventCartridge()
| Method Detail |
|---|
public boolean addEventHandler(EventHandler ev)
ev - object impementing a valid EventHandler-derived interface
public boolean removeEventHandler(EventHandler ev)
ev - object impementing a valid EventHandler-derived interface
public Object referenceInsert(String reference,
Object value)
referenceInsert().
Called during Velocity merge before a reference value will
be inserted into the output stream.
referenceInsert in interface ReferenceInsertionEventHandlerreference - reference from template about to be insertedvalue - value about to be inserted (after toString() )
public boolean shouldLogOnNullSet(String lhs,
String rhs)
shouldLogOnNullSet().
Called during Velocity merge to determine if when
a #set() results in a null assignment, a warning
is logged.
shouldLogOnNullSet in interface NullSetEventHandlerlhs - rhs -
public Object methodException(Class claz,
String method,
Exception e)
throws Exception
methodException().
Called during Velocity merge if a reference is null
methodException in interface MethodExceptionEventHandlerclaz - Class that is causing the exceptionmethod - method called that causes the exceptione - Exception thrown by the method
exception - to be wrapped and propogated to app
Exceptionpublic final boolean attachToContext(Context context)
context - context to attach to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||