KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Containers > Plugins > ListCoordinator


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2001-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): Mathieu Vadet.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.Containers.Plugins;
28
29 /**
30  * This interface ??????.
31  *
32  * @author <a HREF="mailto:Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
33  *
34  * @version 0.3
35  */

36
37 public class ListCoordinator
38        extends org.omg.CORBA.LocalObject JavaDoc
39        implements org.objectweb.openccm.Containers.CallCoordinator,
40                   org.objectweb.openccm.Containers.ActivationCoordinator
41 {
42     // ==================================================================
43
//
44
// Internal state.
45
//
46
// ==================================================================
47

48     /**
49      **
50      **/

51     protected org.objectweb.ccm.util.Vector controllers_;
52
53     // ==================================================================
54
//
55
// Constructor.
56
//
57
// ==================================================================
58

59     /**
60      ** The constructor.
61      **
62      **/

63     public
64     ListCoordinator()
65     {
66         controllers_ = new org.objectweb.ccm.util.Vector();
67     }
68
69     // ==================================================================
70
//
71
// Internal methods.
72
//
73
// ==================================================================
74

75     // ==================================================================
76
//
77
// Public methods for the CallCoordinator interface.
78
//
79
// ==================================================================
80

81     //
82
// IDL:goal.lifl.fr/OpenCCM/Containers/CallCoordinator/add:1.0
83
//
84
/**
85      **
86      **/

87     public org.objectweb.openccm.Containers.CallCoordinator
88     add(org.objectweb.openccm.Containers.CallController ctrl)
89     {
90         controllers_.add(ctrl);
91         return this;
92     }
93
94     // ==================================================================
95
//
96
// Public methods for the ActivationCoordinator interface.
97
//
98
// ==================================================================
99

100     //
101
// IDL:goal.lifl.fr/OpenCCM/Containers/ActivationCoordinator/add:1.0
102
//
103
/**
104      **
105      **/

106     public org.objectweb.openccm.Containers.ActivationCoordinator
107     add(org.objectweb.openccm.Containers.ActivationController ctrl)
108     {
109         controllers_.add(ctrl);
110         return this;
111     }
112
113     // ==================================================================
114
//
115
// Public methods for the CallProtocol interface.
116
//
117
// ==================================================================
118

119     //
120
// IDL:goal.lifl.fr/OpenCCM/Containers/CallProtocol/preinvoke:1.0
121
//
122
/**
123      **
124      **/

125     public void
126     preinvoke(org.objectweb.openccm.Containers.CallContext ctx)
127     {
128         org.objectweb.openccm.Containers.CallController[] ctrls = null;
129         ctrls = (org.objectweb.openccm.Containers.CallController[])
130             controllers_.toArray(new org.objectweb.openccm.Containers.CallController[0]);
131
132         for (int i=0;i<ctrls.length;i++)
133             ctrls[i].preinvoke(ctx);
134     }
135
136     //
137
// IDL:goal.lifl.fr/OpenCCM/Containers/CallProtocol/postinvoke:1.0
138
//
139
/**
140      **
141      **/

142     public void
143     postinvoke(org.objectweb.openccm.Containers.CallContext ctx)
144     {
145         org.objectweb.openccm.Containers.CallController[] ctrls = null;
146         ctrls = (org.objectweb.openccm.Containers.CallController[])
147             controllers_.toArray(new org.objectweb.openccm.Containers.CallController[0]);
148
149         for (int i=0;i<ctrls.length;i++)
150             ctrls[i].postinvoke(ctx);
151     }
152
153     // ==================================================================
154
//
155
// Public methods for the ActivationProtocol interface.
156
//
157
// ==================================================================
158

159     //
160
// IDL:goal.lifl.fr/OpenCCM/Containers/ActivationProtocol/preinvoke:1.0
161
//
162
/**
163      **
164      **/

165     public void
166         preinvoke(org.objectweb.openccm.Containers.ActivationContext ctx)
167     {
168         org.objectweb.openccm.Containers.ActivationController[] ctrls = null;
169         ctrls = (org.objectweb.openccm.Containers.ActivationController[])
170             controllers_.toArray(new org.objectweb.openccm.Containers.ActivationController[0]);
171
172         for (int i=0;i<ctrls.length;i++)
173             ctrls[i].preinvoke(ctx);
174     }
175
176     //
177
// IDL:goal.lifl.fr/OpenCCM/Containers/ActivationProtocol/postinvoke:1.0
178
//
179
/**
180      **
181      **/

182     public void
183     postinvoke(org.objectweb.openccm.Containers.ActivationContext ctx)
184     {
185         org.objectweb.openccm.Containers.ActivationController[] ctrls = null;
186         ctrls = (org.objectweb.openccm.Containers.ActivationController[])
187             controllers_.toArray(new org.objectweb.openccm.Containers.ActivationController[0]);
188
189         for (int i=0;i<ctrls.length;i++)
190             ctrls[i].postinvoke(ctx);
191     }
192
193     // ==================================================================
194
//
195
// Public methods for the SystemComponent interface.
196
//
197
// ==================================================================
198

199     // ==================================================================
200
//
201
// Public methods for the Configuration interface.
202
//
203
// ==================================================================
204

205     //
206
// IDL:goal.lifl.fr/OpenCCM/Containers/Configuration/configure:1.0
207
//
208
/**
209      **
210      **/

211     public void
212     configure(org.objectweb.openccm.Containers.PropertySet config)
213     throws org.objectweb.openccm.Containers.ConfigurationFailed
214     {
215     }
216 }
217
Popular Tags