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