KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Deployment > listener > simple > ContainerListenerSimple


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): Romain Rouvoy.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.Deployment.listener.simple;
28
29 /**
30  * Simple implementation for the
31  * ::Deployment::listener::ContainerListener interface.
32  *
33  * @author <a HREF="mailto:Romain.Rouvoy@lifl.fr">Romain Rouvoy</a>
34  *
35  * @version 0.3
36  */

37 public class ContainerListenerSimple
38         extends org.objectweb.openccm.Deployment.listener.ContainerListenerBase
39 {
40     // ==================================================================
41
//
42
// Internal state.
43
//
44
// ==================================================================
45

46     // ==================================================================
47
//
48
// Constructor.
49
//
50
// ==================================================================
51
/**
52      * Default Constructor
53      *
54      */

55     public
56     ContainerListenerSimple( )
57     {
58         super();
59     }
60
61     // ==================================================================
62
//
63
// Internal methods.
64
//
65
// ==================================================================
66
/**
67      * Provide a new instance of the class
68      *
69      * @return new instance
70      */

71     protected org.objectweb.openccm.Deployment.listener.ContainerListener
72     _new()
73     {
74                 return new ContainerListenerSimple();
75     }
76     
77     // ==================================================================
78
//
79
// Public methods.
80
//
81
// ==================================================================
82

83     // ==================================================================
84
//
85
// Methods for the ::Deployment::listener::ContainerListener interface.
86
//
87
// ==================================================================
88
//
89
// IDL:omg.org/Deployment/listener/ContainerListener/get_sub_listener:1.0
90
//
91
/**
92      * Provide the equivalent CCMHome listener for the current listener
93      *
94      * @return the equivalent CCMHome listener
95      */

96     public org.objectweb.openccm.Deployment.listener.CCMHomeListener
97       get_sub_listener()
98     {
99                 return new CCMHomeListenerSimple();
100     }
101
102     // ==================================================================
103
//
104
// Methods for the ::Deployment::listener::ContainerEvents interface.
105
//
106
// ==================================================================
107
//
108
// IDL:omg.org/Deployment/listener/ContainerEvents/on_create:1.0
109
//
110
/**
111      * Event sent after the create function is called on Container object
112      *
113      * @param ref the object created
114      */

115     public void
116     on_create (org.omg.Components.CCMHome ref)
117     {
118         delegate_.on_create (ref);
119         source_.add_home (ref);
120     }
121     
122     //
123
// IDL:omg.org/Deployment/listener/ContainerEvents/on_add:1.0
124
//
125
/**
126      * Event sent after the add function is called on Container object
127      *
128      * @param ref the object added
129      */

130     public void
131     on_add (org.omg.Components.CCMHome ref)
132     {
133         delegate_.on_add (ref);
134     }
135     
136     //
137
// IDL:omg.org/Deployment/listener/ContainerEvents/on_remove:1.0
138
//
139
/**
140      * Event sent before the remove function is called on Container object
141      *
142      * @param ref the object removed
143      */

144     public void
145     on_remove (org.omg.Components.CCMHome ref)
146     {
147         delegate_.on_remove (ref);
148     }
149     
150     //
151
// IDL:omg.org/Deployment/listener/ContainerEvents/on_destroy:1.0
152
//
153
/**
154      * Event sent before the destruction of the related Container object
155      *
156      */

157     public void
158     on_destroy ()
159     {
160         delegate_.on_destroy ();
161     }
162 }
163
164
165
Popular Tags