KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > ccm > runtime > cif > lib > SessionComponentSegmentBase


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

26
27 package org.objectweb.ccm.runtime.cif.lib;
28
29 /**
30  * Abstract base class for all session component segment classes
31  * generated from CIDL.
32  *
33  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
34  * <a HREF="mailto:Christophe.Demarey@lifl.fr">Christophe Demarey</a>
35  *
36  * @version 0.1
37  */

38
39 public abstract class SessionComponentSegmentBase
40               extends ComponentSegmentBase
41            implements org.omg.Components.SessionComponent
42 {
43     // ==================================================================
44
//
45
// Internal State.
46
//
47
// ==================================================================
48

49     // ==================================================================
50
//
51
// Constructor.
52
//
53
// ==================================================================
54

55     /** The default constructor. */
56     public
57     SessionComponentSegmentBase()
58     {
59         // Do nothing.
60
}
61
62     // ==================================================================
63
//
64
// Internal methods.
65
//
66
// ==================================================================
67

68     // ==================================================================
69
//
70
// Public methods for OMG IDL ::Components::EnterpriseComponent
71
//
72
// ==================================================================
73

74     // Nothing as the interface is empty.
75

76     // ==================================================================
77
//
78
// Public methods for OMG IDL ::Components::ExecutorLocator
79
//
80
// ==================================================================
81

82     // Nothing as the interface is implemented in ComponentSegmentBase.
83

84     // ==================================================================
85
//
86
// Public methods for OMG IDL ::Components::SessionComponent
87
//
88
// ==================================================================
89

90     /**
91      * Sets the session component context.
92      *
93      * Must be implemented in subclasses.
94      *
95      * @param context The session component context.
96      *
97      * @throw org.omg.Components.CCMException For any problems.
98      */

99     abstract public void
100     set_session_context(org.omg.Components.SessionContext context)
101     throws org.omg.Components.CCMException;
102
103     /**
104      * Container callback to signal that the component is activated.
105      *
106      * @throw org.omg.Components.CCMException For any problems.
107      */

108     public void
109     ccm_activate()
110     throws org.omg.Components.CCMException
111     {
112         getLogger().trace(this,
113             "Activating session component: Do nothing by default");
114
115         // Do nothing by default!
116
}
117
118     /**
119      * Container callback to signal that the component is passivated.
120      *
121      * @throw org.omg.Components.CCMException For any problems.
122      */

123     public void
124     ccm_passivate()
125     throws org.omg.Components.CCMException
126     {
127         getLogger().trace(this,
128             "Passivating session component: Do nothing by default");
129
130         // Do nothing by default!
131
}
132
133     /**
134      * Container callback to signal that the component is removed.
135      *
136      * @throw org.omg.Components.CCMException For any problems.
137      */

138     public void
139     ccm_remove()
140     throws org.omg.Components.CCMException
141     {
142         getLogger().trace(this,
143             "Removing session component: Do nothing by default");
144
145         // Do nothing to do by default!
146
}
147 }
148
Popular Tags