KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > Components > MonolithicWrapperBase


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): Philippe Merle.
23 Contributor(s): _______________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.Components;
28
29 /**
30  * Base class for all generated wrapper classes
31  * implementing the Monolithic Executor Strategy.
32  *
33  * @author <a HREF="mailto:Philippe.Merle@lifl.fr">Philippe Merle</a>
34  *
35  * @version 0.1
36  */

37
38 public abstract class MonolithicWrapperBase
39               extends org.objectweb.corba.util.LocalObjectBase
40            implements org.omg.Components.ExecutorLocator
41 {
42     // ==================================================================
43
//
44
// Internal State.
45
//
46
// ==================================================================
47

48     // ==================================================================
49
//
50
// Constructor.
51
//
52
// ==================================================================
53

54     /** The default constructor. */
55     public
56     MonolithicWrapperBase()
57     {
58         // Nothing to do.
59
}
60
61     // ==================================================================
62
//
63
// Internal methods.
64
//
65
// ==================================================================
66

67     // ==================================================================
68
//
69
// Public methods for OMG IDL ::Components::EnterpriseComponent
70
//
71
// ==================================================================
72

73     //
74
// IDL:omg.org/Components/EnterpriseComponent/configuration_complete:1.0
75
//
76
/**
77      * Complete the component configuration.
78      *
79      * @exception org.omg.Components.InvalidConfiguration
80      * Thrown if the configuration is invalid.
81      */

82     public void
83     configuration_complete()
84     throws org.omg.Components.InvalidConfiguration
85     {
86         getLogger().error(this,
87                           "This method should never be called by containers");
88
89         throw new org.omg.Components.InvalidConfiguration();
90     }
91
92     // ==================================================================
93
//
94
// Public methods for OMG IDL ::Components::ExecutorLocator
95
//
96
// ==================================================================
97

98     //
99
// IDL:omg.org/Components/ExecutorLocator/obtain_executor:1.0
100
//
101
/**
102      * Obtain an executor.
103      *
104      * @param name The executor name.
105      *
106      * @return The executor reference.
107      *
108      * @exception org.omg.Components.CCMException Thrown if any error.
109      */

110     public org.omg.CORBA.Object JavaDoc
111     obtain_executor(java.lang.String JavaDoc name)
112     throws org.omg.Components.CCMException
113     {
114         getLogger().trace(this, "Obtaining executor " + name);
115
116         getLogger().error(this,
117                           "This method must be redefined by subclasses");
118
119         throw new org.omg.Components.CCMException();
120     }
121
122     //
123
// IDL:omg.org/Components/ExecutorLocator/release_executor:1.0
124
//
125
/**
126      * Release an executor.
127      *
128      * @param executor The executor reference.
129      *
130      * @exception org.omg.Components.CCMException Thrown if any error.
131      */

132     public void
133     release_executor(org.omg.CORBA.Object JavaDoc executor)
134     throws org.omg.Components.CCMException
135     {
136         getLogger().trace(this, "Releasing executor " + executor);
137
138         getLogger().error(this, "This method must be redefined by subclasses");
139
140         throw new org.omg.Components.CCMException();
141     }
142 }
143
Popular Tags