public class RequestListenerInterface extends Object
| Constructor and Description |
|---|
RequestListenerInterface(Class<? extends IRequestListener> listenerInterfaceClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RequestListenerInterface |
forName(String interfaceName)
Looks up a request interface listener by name.
|
Class<? extends IRequestListener> |
getListenerInterfaceClass() |
Method |
getMethod() |
String |
getName() |
static Collection<RequestListenerInterface> |
getRegisteredInterfaces() |
void |
invoke(IRequestableComponent rcomponent)
Invokes a given interface on a component.
|
void |
invoke(IRequestableComponent rcomponent,
Behavior behavior)
Invokes a given interface on a component's behavior.
|
boolean |
isIncludeRenderCount() |
boolean |
isRenderPageAfterInvocation() |
void |
register()
Method to call to register this interface for use
|
RequestListenerInterface |
setIncludeRenderCount(boolean includeRenderCount) |
RequestListenerInterface |
setRenderPageAfterInvocation(boolean renderPageAfterInvocation) |
String |
toString() |
public RequestListenerInterface(Class<? extends IRequestListener> listenerInterfaceClass)
listenerInterfaceClass - The interface class, which must extend IRequestListener.public static RequestListenerInterface forName(String interfaceName)
interfaceName - The interface namepublic Class<? extends IRequestListener> getListenerInterfaceClass()
public RequestListenerInterface setIncludeRenderCount(boolean includeRenderCount)
includeRenderCount - public boolean isIncludeRenderCount()
public RequestListenerInterface setRenderPageAfterInvocation(boolean renderPageAfterInvocation)
renderPageAfterInvocation - public boolean isRenderPageAfterInvocation()
public final Method getMethod()
public final String getName()
public final void invoke(IRequestableComponent rcomponent)
rcomponent - The componentListenerInvocationNotAllowedException - when listener invocation attempted on a component that does not allow itpublic final void invoke(IRequestableComponent rcomponent, Behavior behavior)
rcomponent - The componentbehavior - ListenerInvocationNotAllowedException - when listener invocation attempted on a component that does not allow itpublic void register()
public String toString()
toString in class ObjectObject.toString()public static Collection<RequestListenerInterface> getRegisteredInterfaces()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.