KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

44     public
45     ContainerListenerDefault(org.objectweb.openccm.Deployment.ContainerLocal 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.ContainerListener
56     _new()
57     {
58     return null;
59     }
60
61     /**
62      * Provide the equivalent CCMHome listener for the current listener
63      *
64      * @return the equivalent CCMHome listener
65      */

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

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

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

99     public void
100     on_remove (org.omg.Components.CCMHome ref)
101     {
102         System.out.println ("ContainerListener::on_remove"+ref);
103     }
104     
105     /**
106      * Event sent before the destruction of the related Container object
107      *
108      */

109     public void
110     on_destroy ()
111     {
112         System.out.println ("ContainerListener::on_destroy");
113     }
114 }
115
116
117
Popular Tags