KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ist > coach > coachEmfServicesComponents > SnmpAdapterProviderComposition > SnmpAdapterProviderHomeImpl


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.SnmpAdapterProviderComposition;
30
31 import org.opennms.protocols.snmp.*;
32
33 import ist.coach.coachEmfCommon.Utils;
34 import ist.coach.coachEmfCommon.ExceptionMessages;
35 import ist.coach.coachEmfServices.SnmpAdapter.SnmpApplicationError;
36 import ist.coach.coachEmfCommon.DataTypeImpl;
37 import ist.coach.coachEmfServices.SnmpAdapter.DataType;
38 import ist.coach.coachEmfServicesComponents.SnmpAdapterProviderPackage.trap_targetConnection;
39
40 import org.omg.CORBA.Any JavaDoc;
41 /**
42  * This is the CIDL-based implementation of
43  * OMG IDL3 IDL:coach.ist/coachEmfServicesComponents/SnmpAdapterProviderHome:1.0 home type.
44  *
45  * This class inherits from the generated home executor skeleton class
46  * defined by OMG CIDL ist.coach.coachEmfServicesComponents.SnmpAdapterProviderComposition.SnmpAdapterProviderHome_impl
47  *
48  * @author OpenCCM CIF_Jimpl Compiler.
49  */

50 public class SnmpAdapterProviderHomeImpl
51      extends ist.coach.coachEmfServicesComponents.SnmpAdapterProviderComposition.SnmpAdapterProviderHome_impl
52 {
53     // ==================================================================
54
//
55
// Internal states.
56
//
57
// ==================================================================
58

59     // ==================================================================
60
//
61
// Constructors.
62
//
63
// ==================================================================
64

65     public SnmpAdapterProviderHomeImpl()
66     {
67     }
68
69     // ==================================================================
70
//
71
// Methods.
72
//
73
// ==================================================================
74

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

84     public org.omg.Components.ExecutorSegmentBase
85     create_executor_segment(int segid)
86     {
87         switch (segid)
88         {
89             case ist.coach.coachEmfServicesComponents.SnmpAdapterProviderComposition.connectorSegImpl._segment_id_value :
90                 return new connectorSegImpl();
91             case ist.coach.coachEmfServicesComponents.SnmpAdapterProviderComposition.configSegImpl._segment_id_value :
92                 return new configSegImpl();
93             default :
94                 return new ist.coach.coachEmfServicesComponents.SnmpAdapterProviderComposition.SnmpAdapterProviderImpl();
95         }
96     }
97
98     /**
99      * This method is called by the OpenCCM Component Server
100      * to create a home instance.
101      *
102      * @return - The created home.
103      */

104     public static org.omg.Components.HomeExecutorBase
105     create_home()
106     {
107             return new ist.coach.coachEmfServicesComponents.SnmpAdapterProviderComposition.SnmpAdapterProviderHomeImpl();
108     }
109
110     static
111     {
112     ist.coach.coachEmfCommon.DataTypeFactory.register();
113     }
114
115 }
116
Popular Tags