Class OnEventWorker
java.lang.Object
org.apache.tapestry5.internal.transform.OnEventWorker
- All Implemented Interfaces:
ComponentClassTransformWorker2
Provides implementations of the
Component.dispatchComponentEvent(org.apache.tapestry5.runtime.ComponentEvent)
method, based on OnEvent
annotations and naming conventions.-
Constructor Summary
ConstructorsConstructorDescriptionOnEventWorker
(Request request, ValueEncoderSource valueEncoderSource, ComponentClassCache classCache, OperationTracker operationTracker, RestSupport restSupport) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isRestEndpointEventHandlerMethod
(OnEvent onEvent, String methodName) Tells whether a method with a given name and possiblyOnEvent
annotation is a REST endpoint event handler method or not.void
transform
(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) Invoked to perform part of the transformation of thePlasticClass
.
-
Constructor Details
-
OnEventWorker
public OnEventWorker(Request request, ValueEncoderSource valueEncoderSource, ComponentClassCache classCache, OperationTracker operationTracker, RestSupport restSupport)
-
-
Method Details
-
transform
public void transform(PlasticClass plasticClass, TransformationSupport support, MutableComponentModel model) Description copied from interface:ComponentClassTransformWorker2
Invoked to perform part of the transformation of thePlasticClass
.- Specified by:
transform
in interfaceComponentClassTransformWorker2
- Parameters:
plasticClass
- component class being transformedsupport
- additional utilities needed during the transformationmodel
- the model for the component being transformed
-
isRestEndpointEventHandlerMethod
Tells whether a method with a given name and possiblyOnEvent
annotation is a REST endpoint event handler method or not.
-