KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmfServicesComponents > AlarmChannelProviderComposition > AlarmChannelProviderHomeImpl


1 /*====================================================================
2
3 This file was produced by the OpenCCM CIF_JIMPL generator.
4
5 OpenCCM: The Open CORBA Component Model Platform
6 Copyright (C) 2000-2003 INRIA - USTL - LIFL - GOAL
7 Contact: openccm@objectweb.org
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 USA
23
24 Initial developer(s): Christophe Demarey.
25 Contributor(s): ______________________________________.
26
27 ====================================================================*/

28
29 package ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition;
30
31 import ist.coach.coachEmfCommon.ObjectCreationFactory;
32 import ist.coach.coachEmfCommon.ObjectDeletionFactory;
33 import ist.coach.coachEmfCommon.OperationalViolationFactory;
34 import ist.coach.coachEmfCommon.StateChangedEventFactory;
35 import ist.coach.coachEmfCommon.ChannelChangeEventFactory;
36 import ist.coach.coachEmfCommon.HeartbeatFactory;
37 import ist.coach.coachEmfCommon.LogThresholdAlarmFactory;
38
39 /**
40  * This is the CIDL-based implementation of
41  * OMG IDL3 IDL:coach.ist/coachEmfServicesComponents/AlarmChannelProviderHome:1.0 home type.
42  *
43  * This class inherits from the generated home executor skeleton class
44  * defined by OMG CIDL ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.AlarmChannelProviderHome_impl
45  *
46  * @author OpenCCM CIF_Jimpl Compiler.
47  */

48 public class AlarmChannelProviderHomeImpl
49      extends ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.AlarmChannelProviderHome_impl
50 {
51     // ==================================================================
52
//
53
// Internal states.
54
//
55
// ==================================================================
56

57     // ==================================================================
58
//
59
// Constructors.
60
//
61
// ==================================================================
62

63     public AlarmChannelProviderHomeImpl()
64     {
65     }
66
67     // ==================================================================
68
//
69
// Methods.
70
//
71
// ==================================================================
72

73     /**
74      * Method for the org.objectweb.ccm.runtime.cif.api.SegmentHome interface.
75      *
76      * Create an executor segment from its identifier.
77      *
78      * @param segid - The executor segment identifier.
79      *
80      * @return - The executor segment created.
81      */

82     public org.omg.Components.ExecutorSegmentBase
83     create_executor_segment(int segid)
84     {
85         switch (segid)
86         {
87             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.objectCreationSegImpl._segment_id_value :
88                 return new objectCreationSegImpl();
89             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.objectDeletionSegImpl._segment_id_value :
90                 return new objectDeletionSegImpl();
91             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.operationalViolationSegImpl._segment_id_value :
92                 return new operationalViolationSegImpl();
93             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.stateChangedSegImpl._segment_id_value :
94                 return new stateChangedSegImpl();
95             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.heartbeatSegImpl._segment_id_value :
96                 return new heartbeatSegImpl();
97             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.channelChangeSegImpl._segment_id_value :
98                 return new channelChangeSegImpl();
99             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.attributeValueChangeSegImpl._segment_id_value :
100                 return new attributeValueChangeSegImpl();
101             case ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.logThresholdSegImpl._segment_id_value :
102                 return new logThresholdSegImpl();
103             default :
104                 return new ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.AlarmChannelProviderImpl();
105         }
106     }
107
108     /**
109      * This method is called by the OpenCCM Component Server
110      * to create a home instance.
111      *
112      * @return - The created home.
113      */

114     public static org.omg.Components.HomeExecutorBase
115     create_home()
116     {
117             return new ist.coach.coachEmfServicesComponents.AlarmChannelProviderComposition.AlarmChannelProviderHomeImpl();
118     }
119     // Executed once at the loading of this class
120
// by the OpenCCM Component Server.
121
static {
122
123         ObjectCreationFactory.register();
124         ObjectDeletionFactory.register();
125         OperationalViolationFactory.register();
126         StateChangedEventFactory.register();
127         ChannelChangeEventFactory.register();
128         HeartbeatFactory.register();
129         LogThresholdAlarmFactory.register();
130     }
131 }
132
Popular Tags