KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > execution > factory > FlowExecutionListenerCriteria


1 /*
2  * Copyright 2002-2006 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.springframework.webflow.execution.factory;
17
18 import org.springframework.webflow.definition.FlowDefinition;
19
20 /**
21  * Strategy interface that determines if a flow execution listener should attach
22  * to executions of a specific flow definition.
23  * <p>
24  * This selection strategy is typically used by the
25  * {@link FlowExecutionListenerLoader} to determine which listeners
26  * should apply to which flow definitions.
27  *
28  * @see org.springframework.webflow.execution.FlowExecution
29  * @see org.springframework.webflow.execution.FlowExecutionListener
30  * @see org.springframework.webflow.execution.factory.FlowExecutionListenerLoader
31  *
32  * @author Keith Donald
33  * @author Erwin Vervaet
34  */

35 public interface FlowExecutionListenerCriteria {
36
37     /**
38      * Do the listeners guarded by this criteria object apply to the provided
39      * flow definition?
40      * @param definition the flow definition
41      * @return true if yes, false if no
42      */

43     public boolean appliesTo(FlowDefinition definition);
44 }
Popular Tags