KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Deployment > listener > ComponentServerListenerDefault


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;
28
29 /**
30  * Empty implementation of the ComponentServer interface
31  *
32  * @author <a HREF="mailto:Romain.Rouvoy@lifl.fr">Romain Rouvoy</a>
33  *
34  * @version 0.3
35  */

36 public class ComponentServerListenerDefault
37 extends ComponentServerListenerBase
38 {
39     /**
40      * Constructor with parameter
41      *
42      * @param source the event source
43      */

44     public
45     ComponentServerListenerDefault(org.objectweb.openccm.Deployment.ComponentServerLocal source)
46     {
47         super(source);
48     }
49
50     /**
51      * Provide a new instance of the class
52      *
53      * @return new instance
54      */

55     protected org.objectweb.openccm.Deployment.listener.ComponentServerListener
56     _new()
57     {
58     return null;
59     }
60     
61
62     /**
63      * Provide the equivalent Container listener for the current listener
64      *
65      * @return the equivalent Container listener
66      */

67     public org.objectweb.openccm.Deployment.listener.ContainerListener
68     get_sub_listener()
69     {
70     return null;
71     }
72
73     /**
74      * Event sent after the create function is called on ComponentServer object
75      *
76      * @param ref the object created
77      */

78     public void
79     on_create (org.omg.Components.Deployment.Container cont_ref)
80     {
81         System.out.println ("ComponentServerListener::on_create\n"+cont_ref);
82     }
83     
84     /**
85      * Event sent after the add function is called on ComponentServer object
86      *
87      * @param ref the object added
88      */

89     public void
90     on_add (org.omg.Components.Deployment.Container cont_ref)
91     {
92         System.out.println ("ComponentServerListener::on_add\n"+cont_ref);
93     }
94     
95     /**
96      * Event sent before the remove function is called on ComponentServer object
97      *
98      * @param ref the object removed
99      */

100     public void
101     on_remove (org.omg.Components.Deployment.Container cont_ref)
102     {
103         System.out.println ("ComponentServerListener::on_remove\n"+cont_ref);
104     }
105     
106     /**
107      * Event sent before the destruction of the related ComponentServer object
108      *
109      */

110     public void
111     on_destroy ()
112     {
113         System.out.println ("ComponentServerListener::on_destroy\n");
114     }
115 }
116
Popular Tags