1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.module.jca; |
12 | |
|
13 | |
import org.mule.api.MuleContext; |
14 | |
import org.mule.api.MuleEvent; |
15 | |
import org.mule.api.MuleException; |
16 | |
import org.mule.api.MuleMessage; |
17 | |
import org.mule.module.jca.i18n.JcaMessages; |
18 | |
import org.mule.processor.builder.InterceptingChainMessageProcessorBuilder; |
19 | |
import org.mule.service.AbstractService; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
public class JcaService extends AbstractService |
27 | |
{ |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
private static final long serialVersionUID = -1510441245219710451L; |
33 | |
|
34 | |
|
35 | |
public JcaService(MuleContext muleContext) |
36 | |
{ |
37 | 0 | super(muleContext); |
38 | 0 | } |
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
public MuleEvent sendEvent(MuleEvent event) throws MuleException |
48 | |
{ |
49 | 0 | throw new UnsupportedOperationException("sendEvent()"); |
50 | |
} |
51 | |
|
52 | |
public boolean isPaused() |
53 | |
{ |
54 | |
|
55 | |
|
56 | 0 | return false; |
57 | |
} |
58 | |
|
59 | |
protected void waitIfPaused(MuleEvent event) throws InterruptedException |
60 | |
{ |
61 | |
|
62 | |
|
63 | 0 | } |
64 | |
|
65 | |
protected void doPause() |
66 | |
{ |
67 | 0 | throw new UnsupportedOperationException(JcaMessages.cannotPauseResumeJcaComponent().getMessage()); |
68 | |
} |
69 | |
|
70 | |
protected void doResume() |
71 | |
{ |
72 | 0 | throw new UnsupportedOperationException(JcaMessages.cannotPauseResumeJcaComponent().getMessage()); |
73 | |
} |
74 | |
|
75 | |
@Override |
76 | |
protected void addMessageProcessors(InterceptingChainMessageProcessorBuilder builder) |
77 | |
{ |
78 | 0 | builder.chain(component); |
79 | 0 | } |
80 | |
} |