org.apache.velocity.test.eventhandler
Class Handler1
java.lang.Object
org.apache.velocity.test.eventhandler.Handler1
- All Implemented Interfaces:
- org.apache.velocity.app.event.EventHandler, org.apache.velocity.app.event.IncludeEventHandler, org.apache.velocity.app.event.MethodExceptionEventHandler, org.apache.velocity.app.event.NullSetEventHandler, org.apache.velocity.app.event.ReferenceInsertionEventHandler
public class Handler1
- extends Object
- implements org.apache.velocity.app.event.NullSetEventHandler, org.apache.velocity.app.event.ReferenceInsertionEventHandler, org.apache.velocity.app.event.MethodExceptionEventHandler, org.apache.velocity.app.event.IncludeEventHandler
This is a test set of event handlers, used to test event handler sequences.
- Version:
- $Id: Handler1.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Will Glass-Husain
| Nested classes/interfaces inherited from interface org.apache.velocity.app.event.NullSetEventHandler |
org.apache.velocity.app.event.NullSetEventHandler.ShouldLogOnNullSetExecutor |
| Nested classes/interfaces inherited from interface org.apache.velocity.app.event.ReferenceInsertionEventHandler |
org.apache.velocity.app.event.ReferenceInsertionEventHandler.referenceInsertExecutor |
| Nested classes/interfaces inherited from interface org.apache.velocity.app.event.MethodExceptionEventHandler |
org.apache.velocity.app.event.MethodExceptionEventHandler.MethodExceptionExecutor |
| Nested classes/interfaces inherited from interface org.apache.velocity.app.event.IncludeEventHandler |
org.apache.velocity.app.event.IncludeEventHandler.IncludeEventExecutor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Handler1
public Handler1()
shouldLogOnNullSet
public boolean shouldLogOnNullSet(String lhs,
String rhs)
- never log
- Specified by:
shouldLogOnNullSet in interface org.apache.velocity.app.event.NullSetEventHandler
referenceInsert
public Object referenceInsert(String reference,
Object value)
- display output twice, once uppercase and once lowercase
- Specified by:
referenceInsert in interface org.apache.velocity.app.event.ReferenceInsertionEventHandler
methodException
public Object methodException(Class claz,
String method,
Exception e)
throws Exception
- throw the exception
- Specified by:
methodException in interface org.apache.velocity.app.event.MethodExceptionEventHandler
- Throws:
Exception
includeEvent
public String includeEvent(String includeResourcePath,
String currentResourcePath,
String directiveName)
- Specified by:
includeEvent in interface org.apache.velocity.app.event.IncludeEventHandler
Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.