Examples of OnEvent


Examples of org.apache.tapestry5.annotations.OnEvent

        replay();

        ClassTransformation ct = createClassTransformation(EventHandlerTarget.class, logger);

        OnEvent annotation = ct.getMethodAnnotation(new TransformMethodSignature("handler"), OnEvent.class);

        // Check that the attributes of the annotation match the expectation.

        assertEquals(annotation.value(), "fred");
        assertEquals(annotation.component(), "alpha");

        verify();
    }
View Full Code Here

Examples of org.apache.tapestry5.annotations.OnEvent

    {
        // $1 is the event

        int parameterCount = getParameterCount(method);

        OnEvent annotation = transformation.getMethodAnnotation(method, OnEvent.class);

        String eventType = extractEventType(method, annotation);

        String componentId = extractComponentId(method, annotation);
View Full Code Here

Examples of org.apache.tapestry5.annotations.OnEvent

    for (PlasticMethod method : plasticClass
        .getMethodsWithAnnotation(AuthenticationPolicy.class)) {
      String methodName = method.getDescription().methodName;
      AuthenticationPolicy policy = method
          .getAnnotation(AuthenticationPolicy.class);
      OnEvent event = method.getAnnotation(OnEvent.class);
      if (methodName.startsWith("on") || event != null) {
        String componentId = extractComponentId(methodName, event);
        String eventType = extractEventType(methodName, event);
        String authenticationPolicyMeta = AuthenticationValidator.EVENT_HANDLER_AUTHENTICATION_TYPE
            + "-" + componentId + "-" + eventType;
View Full Code Here

Examples of org.eclipse.bpel.model.OnEvent

    Element eventHandlerElement = createBPELElement("eventHandlers");
   
    // TODO: For backwards compatibility with 1.1 we should serialize
    // OnMessages here.
    for (Iterator it = eventHandler.getEvents().iterator(); it.hasNext(); ) {
      OnEvent onEvent = (OnEvent)it.next();     
      eventHandlerElement.appendChild(onEvent2XML(onEvent));     
    }
    for (Iterator it = eventHandler.getAlarm().iterator(); it.hasNext(); ) {
      OnAlarm onAlarm = (OnAlarm)it.next();     
      eventHandlerElement.appendChild(onAlarm2XML(onAlarm));     
View Full Code Here

Examples of org.eclipse.bpel.model.OnEvent

        if (result == null) result = caseIExtensibilityElement(unknownExtensibilityAttribute);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.ON_EVENT: {
        OnEvent onEvent = (OnEvent)theEObject;
        Object result = caseOnEvent(onEvent);
        if (result == null) result = caseExtensibleElement(onEvent);
        if (result == null) result = caseExtensibleElement_1(onEvent);
        if (result == null) result = caseWSDLElement(onEvent);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.