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)); } }
/** * Register a {@link FlowExecutionListener} that observes the lifecycle of flow * executions launched by this executor. * @param listener the listener to be registered * @param criteria the criteria that determines the flow definitions a listener * should observe, delimited by commas or '*' for "all". * Example: 'flow1,flow2,flow3'. */ public FlowExecutorBuilder addFlowExecutionListener(FlowExecutionListener listener, String criteria) { if (this.listenerLoader == null) { this.listenerLoader = new ConditionalFlowExecutionListenerLoader(); } this.listenerLoader.addListener(listener, this.listenerCriteriaFactory.getListenerCriteria(criteria)); return this; }
public void afterPropertiesSet() { listenerLoader = new ConditionalFlowExecutionListenerLoader(); Iterator it = listenersWithCriteria.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); FlowExecutionListener listener = (FlowExecutionListener) entry.getKey(); String criteria = (String) entry.getValue(); listenerLoader.addListener(listener, listenerCriteriaFactory.getListenerCriteria(criteria)); } }
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)); } }
/** * Register a {@link FlowExecutionListener} that observes the lifecycle of flow * executions launched by this executor. * @param listener the listener to be registered * @param criteria the criteria that determines the flow definitions a listener * should observe, delimited by commas or '*' for "all". * Example: 'flow1,flow2,flow3'. */ public FlowExecutorBuilder addFlowExecutionListener(FlowExecutionListener listener, String criteria) { if (this.listenerLoader == null) { this.listenerLoader = new ConditionalFlowExecutionListenerLoader(); } this.listenerLoader.addListener(listener, this.listenerCriteriaFactory.getListenerCriteria(criteria)); return this; }