Package org.springframework.webflow.execution

Examples of org.springframework.webflow.execution.FlowExecutionListener


    loader = new StaticFlowExecutionListenerLoader(listener1);
    assertEquals(listener1, loader.getListeners(new Flow("foo"))[0]);
  }

  public void testStaticListeners() {
    final FlowExecutionListener listener1 = new FlowExecutionListenerAdapter() {
    };
    final FlowExecutionListener listener2 = new FlowExecutionListenerAdapter() {
    };

    loader = new StaticFlowExecutionListenerLoader(new FlowExecutionListener[] { listener1, listener2 });
    assertEquals(listener1, loader.getListeners(new Flow("foo"))[0]);
    assertEquals(listener2, loader.getListeners(new Flow("foo"))[1]);
View Full Code Here


        throw new UnsupportedOperationException("Should not be called");
      }

    });
    new EndState(flow, "end");
    FlowExecutionListener mockListener = new FlowExecutionListenerAdapter() {
      public void sessionCreating(RequestContext context, FlowDefinition definition) {
        assertFalse(context.getFlowExecutionContext().isActive());
        throw new IllegalStateException("Oops");
      }
    };
View Full Code Here

      }
    });
    Set<FlowElementAttribute> attributes = new HashSet<FlowElementAttribute>();
    attributes.add(new FlowElementAttribute("foo", "bar", null));
    factoryBean.setFlowExecutionAttributes(attributes);
    FlowExecutionListener listener = new FlowExecutionListenerAdapter() {

    };
    factoryBean.setFlowExecutionListenerLoader(new StaticFlowExecutionListenerLoader(listener));
    factoryBean.setMaxFlowExecutionSnapshots(2);
    factoryBean.setMaxFlowExecutions(1);
View Full Code Here

  }

  public void afterPropertiesSet() {
    listenerLoader = new ConditionalFlowExecutionListenerLoader();
    for (Map.Entry<FlowExecutionListener, String> entry : listenersWithCriteria.entrySet()) {
      FlowExecutionListener listener = entry.getKey();
      String criteria = entry.getValue();
      listenerLoader.addListener(listener, listenerCriteriaFactory.getListenerCriteria(criteria));
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.execution.FlowExecutionListener

Copyright © 2018 www.massapicom. 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.