1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.transport.jms.filters; |
12 | |
|
13 | |
import static org.mule.util.ClassUtils.equal; |
14 | |
import static org.mule.util.ClassUtils.hash; |
15 | |
|
16 | |
import org.mule.api.MuleMessage; |
17 | |
import org.mule.api.routing.filter.Filter; |
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | 0 | public class JmsSelectorFilter implements Filter |
25 | |
{ |
26 | |
|
27 | 0 | private String expression = null; |
28 | |
|
29 | |
public boolean accept(MuleMessage message) |
30 | |
{ |
31 | |
|
32 | 0 | return true; |
33 | |
} |
34 | |
|
35 | |
public String getExpression() |
36 | |
{ |
37 | 0 | return expression; |
38 | |
} |
39 | |
|
40 | |
public void setExpression(String expression) |
41 | |
{ |
42 | 0 | this.expression = expression; |
43 | 0 | } |
44 | |
|
45 | |
public boolean equals(Object obj) |
46 | |
{ |
47 | 0 | if (this == obj) return true; |
48 | 0 | if (obj == null || getClass() != obj.getClass()) return false; |
49 | |
|
50 | 0 | final JmsSelectorFilter other = (JmsSelectorFilter) obj; |
51 | 0 | return equal(expression, other.expression); |
52 | |
} |
53 | |
|
54 | |
public int hashCode() |
55 | |
{ |
56 | 0 | return hash(new Object[]{this.getClass(), expression}); |
57 | |
} |
58 | |
} |