01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /*
19: * ChainBuilder ESB
20: * Visual Enterprise Integration
21: *
22: * Copyright (C) 2006 Bostech Corporation
23: *
24: * This program is free software; you can redistribute it and/or modify it
25: * under the terms of the GNU General Public License as published by the
26: * Free Software Foundation; either version 2 of the License, or (at your option)
27: * any later version.
28: *
29: * This program is distributed in the hope that it will be useful,
30: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
31: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
32: * for more details.
33: *
34: * You should have received a copy of the GNU General Public License along with
35: * this program; if not, write to the Free Software Foundation, Inc.,
36: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37: *
38: * $Id: CbExtendedComponent.java 6866 2007-04-17 19:50:23Z tvolle $
39: */
40: package com.bostechcorp.cbesb.runtime.ccsl.jbi.messaging;
41:
42: public abstract class CbExtendedComponent extends CbComponent {
43:
44: protected CbExtendedLifeCycle lifeCycle;
45:
46: /*
47: * This is the base class for components with an extended lifecycle MBean
48: */
49: public CbExtendedComponent() {
50: // lifeCycle = createLifeCycle();
51: // registry = createRegistry();
52: // serviceUnitManager = createServiceUnitManager();
53: super ();
54: }
55:
56: /**
57: * Create the life cycle object.
58: * Derived classes should override this method to be able to
59: * use a custom life cycle implementation.
60: *
61: * @return a life cycle object
62: */
63: protected CbExtendedLifeCycle createLifeCycle() {
64: return new CbExtendedLifeCycle(this);
65: }
66:
67: }
|