Class OnEventWorker
- java.lang.Object
-
- org.apache.tapestry5.internal.transform.OnEventWorker
-
- All Implemented Interfaces:
ComponentClassTransformWorker2
public class OnEventWorker extends java.lang.Object implements ComponentClassTransformWorker2
Provides implementations of theComponent.dispatchComponentEvent(org.apache.tapestry5.runtime.ComponentEvent)method, based onOnEventannotations and naming conventions.
-
-
Constructor Summary
Constructors Constructor Description OnEventWorker(Request request, ValueEncoderSource valueEncoderSource, ComponentClassCache classCache, OperationTracker operationTracker, RestSupport restSupport)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisRestEndpointEventHandlerMethod(OnEvent onEvent, java.lang.String methodName)Tells whether a method with a given name and possiblyOnEventannotation is a REST endpoint event handler method or not.voidtransform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model)Invoked to perform part of the transformation of thePlasticClass.
-
-
-
Constructor Detail
-
OnEventWorker
public OnEventWorker(Request request, ValueEncoderSource valueEncoderSource, ComponentClassCache classCache, OperationTracker operationTracker, RestSupport restSupport)
-
-
Method Detail
-
transform
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model)
Description copied from interface:ComponentClassTransformWorker2Invoked to perform part of the transformation of thePlasticClass.- Specified by:
transformin interfaceComponentClassTransformWorker2- Parameters:
plasticClass- component class being transformedsupport- additional utilities needed during the transformationmodel- the model for the component being transformed
-
isRestEndpointEventHandlerMethod
public static boolean isRestEndpointEventHandlerMethod(OnEvent onEvent, java.lang.String methodName)
Tells whether a method with a given name and possiblyOnEventannotation is a REST endpoint event handler method or not.
-
-