1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 package it.imolinfo.jbi4ejb.jbi.component.runtime;
31
32 import javax.jbi.JBIException;
33 import javax.management.ObjectName;
34 import javax.management.StandardMBean;
35
36
37
38
39
40
41 public class DefaultComponentLifeCycle extends AbstractComponentLifeCycle {
42
43 public DefaultComponentLifeCycle(ComponentRuntime compRuntime) {
44 super(compRuntime);
45 }
46
47 protected void activateServiceProviders() throws JBIException {
48
49 }
50
51 protected void deactivateServiceProviders() throws JBIException {
52
53 }
54
55 protected void activateServiceConsumers() throws JBIException {
56
57 }
58
59 protected void deactivateServiceConsumers() throws JBIException {
60
61 }
62
63 protected void initMessageExchangeHandlerFactory() throws JBIException {
64 RuntimeContext.getInstance().setMessageExchangeHandlerFactory(
65 new MessageExchangeHandlerFactory.DefaultMessageExchangeHandlerFactory());
66 }
67
68 protected MessageExchangeReceiver createMessageExchangeReceiver() throws Exception {
69 return new MessageExchangeReceiver();
70 }
71
72
73
74
75 protected ObjectName createExtensionMBeanName() {
76 return null;
77 }
78
79
80
81
82 protected StandardMBean createExtensionMBean() {
83 return null;
84 }
85
86 }