KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Containers > ComponentServant


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): Sylvain Leblanc, Romain Rouvoy________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.Containers;
28
29 import org.objectweb.openccm.Containers.MetaInformation.ComponentInstance;
30 import org.objectweb.openccm.Containers.ActivationContext;
31
32 /**
33  * An component servant is conceptually an extension of the CORBA
34  * servant but dedicated to components.
35  *
36  * @author <a HREF="mailto:Mathieu.Vadet@lifl.fr">Mathieu Vadet</a>
37  *
38  * @version 0.3
39  */

40
41 public interface ComponentServant
42 {
43     /**
44      **
45      **/

46     public ActivationContext
47     activation_context();
48
49     /**
50      **
51      **/

52     public HomeServant
53     the_home_servant();
54
55     /**
56      **
57      **/

58     public ComponentExecutor
59     the_component_executor();
60
61     /**
62      **
63      **/

64     public org.omg.Components.CCMObject
65     the_component_ref();
66
67     /**
68      **
69      **/

70     public org.omg.Components.PrimaryKeyBase
71     the_registration_info();
72
73   /** MODIF MetaInformation
74    **
75    ** The component instance MI accessor
76    **/

77   
78   public ComponentInstance
79   the_component_instance();
80
81     /**
82      **
83      **/

84     public org.omg.CORBA.Object JavaDoc
85     get_reference(java.lang.String JavaDoc uid);
86
87     /**
88      **
89      **/

90     public Interceptor
91     get_native_interface(java.lang.String JavaDoc uid);
92
93     /**
94      **
95      **/

96     public void
97     release_native_interface(Interceptor inter);
98
99     /**
100      ** Remove the associated component.
101      **/

102     public void
103     remove()
104         throws org.omg.Components.RemoveFailure;
105 }
106
Popular Tags