2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.shale.clay.utils;
22
23 import org.apache.commons.chain.Context;
24 import org.apache.commons.chain.generic.LookupCommand;
25
26 /***
27 * Very similar to the LookupCommand of commons chain, but the execute method
28 * return always false to continue the processing.
29 * @see org.apache.commons.chain.generic.LookupCommand
30 */
31 public class FalseLookupCommand extends LookupCommand {
32
33 /***
34 * @param context commons chains
35 * @return always <code>false</code>
36 * @throws Exception from nested command execution
37 */
38 public boolean execute(Context context) throws Exception {
39 super.execute(context);
40 return false;
41 }
42 }