1 /*
2 * The contents of this file are subject to the terms
3 * of the Common Development and Distribution License
4 * (the "License"). You may not use this file except
5 * in compliance with the License.
6 *
7 * You can obtain a copy of the license at
8 * https://open-esb.dev.java.net/public/CDDLv1.0.html.
9 * See the License for the specific language governing
10 * permissions and limitations under the License.
11 *
12 * When distributing Covered Code, include this CDDL
13 * HEADER in each file and include the License file at
14 * https://open-esb.dev.java.net/public/CDDLv1.0.html.
15 * If applicable add the following below this CDDL HEADER,
16 * with the fields enclosed by brackets "[]" replaced with
17 * your own identifying information: Portions Copyright
18 * [year] [name of copyright owner]
19 */
20
21 /*
22 * Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved.
23 */
24
25 /*
26 * DefaultComponentLifeCycle.java
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 * Default ComponentLifeCycle implementation.
38 *
39 * @author Sun Microsystems, Inc.
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 // NOOP
49 }
50
51 protected void deactivateServiceProviders() throws JBIException {
52 // NOOP
53 }
54
55 protected void activateServiceConsumers() throws JBIException {
56 // NOOP
57 }
58
59 protected void deactivateServiceConsumers() throws JBIException {
60 // NOOP
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 * no extension mbean
74 */
75 protected ObjectName createExtensionMBeanName() {
76 return null;
77 }
78
79 /**
80 * no extension mbean
81 */
82 protected StandardMBean createExtensionMBean() {
83 return null;
84 }
85
86 }