KickJava   Java API By Example, From Geeks To Geeks.

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


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 CCMHomeListener interface
31  *
32  * @author <a HREF="mailto:Romain.Rouvoy@lifl.fr">Romain Rouvoy</a>
33  *
34  * @version 0.3
35  */

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

44     public
45     CCMHomeListenerDefault(org.objectweb.openccm.Deployment.CCMHomeLocal 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.CCMHomeListener
56     _new()
57     {
58     return null;
59     }
60     
61     /**
62      * Event sent after the create function is called on CCMHome object
63      *
64      * @param ref the object created
65      */

66     public void
67     on_create (org.omg.Components.CCMObject ref)
68     {
69         System.out.println ("CCMHomeListener::on_create\n"+ref);
70     }
71     
72     /**
73      * Event sent after the add function is called on CCMHome object
74      *
75      * @param ref the object added
76      */

77     public void
78     on_add (org.omg.Components.CCMObject ref )
79     {
80         System.out.println ("CCMHomeListener::on_add\n"+ref);
81     }
82     
83     /**
84      * Event sent before the remove function is called on CCMHome object
85      *
86      * @param ref the object removed
87      */

88     public void
89     on_remove (org.omg.Components.CCMObject ref)
90     {
91         System.out.println ("CCMHomeListener::on_remove\n"+ref);
92     }
93     
94     /**
95      * Event sent before the destruction of the related CCMHome object
96      *
97      */

98     public void
99     on_destroy ()
100     {
101         System.out.println ("CCMHomeListener::on_destroy\n");
102     }
103 }
104
105
106
107
Popular Tags