org.apache.tapestry5.internal
Class EmptyEventContext
java.lang.Object
org.apache.tapestry5.internal.EmptyEventContext
- All Implemented Interfaces:
- EventContext
public class EmptyEventContext
- extends Object
- implements EventContext
Placeholder used when no context is available.
|
Method Summary |
|
get(Class<T> desiredType,
int index)
This should never be called because the count is always zero. |
int |
getCount()
Always returns zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyEventContext
public EmptyEventContext()
getCount
public int getCount()
- Always returns zero.
- Specified by:
getCount in interface EventContext
get
public <T> T get(Class<T> desiredType,
int index)
- This should never be called because the count is always zero.
- Specified by:
get in interface EventContext
- Parameters:
desiredType - the type of value requiredindex - identifies which parameter value to extract
- Returns:
- the value extracted and converted or coerced
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.