KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > core > service > RPCContainer


1 /**
2  *
3  * Copyright 2003-2004 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.geronimo.core.service;
19
20
21 import javax.management.ObjectName JavaDoc;
22
23 import org.apache.geronimo.core.service.Container;
24 import org.apache.geronimo.core.service.Interceptor;
25 import org.apache.geronimo.core.service.Invocation;
26 import org.apache.geronimo.core.service.InvocationResult;
27
28 /**
29  *
30  *
31  *
32  * @version $Rev: 46019 $ $Date: 2004-09-14 02:56:06 -0700 (Tue, 14 Sep 2004) $
33  */

34 public interface RPCContainer extends Container {
35     //
36
// Main entry point
37
//
38
InvocationResult invoke(Invocation invocation) throws Throwable JavaDoc;
39
40
41     /**
42      * Get the JMX object name of the logical plugin.
43      * @param logicalPluginName the logical name of the desired plugin
44      * @return the JMX object name associated with the logical plugin, or null if a name is not found
45      */

46     ObjectName JavaDoc getPlugin(String JavaDoc logicalPluginName);
47
48     /**
49      * Puts the objectName in the container.
50      * @param logicalPluginName the logical name of the plugin to set
51      * @param objectName the JMX object name to set
52      */

53     void putPlugin(String JavaDoc logicalPluginName, ObjectName JavaDoc objectName);
54
55     /**
56      * Gets the named plugin as an Object.
57      * @deprecated Switch plugin to a JMX object an use 'ObjectName getPlugin(String name)' instead
58      * @param logicalPluginName the name of the plugin to get
59      * @return the actual plugin object
60      */

61     Object JavaDoc getPluginObject(String JavaDoc logicalPluginName);
62
63     /**
64      * Puts the named plugin Object in the container.
65      * @deprecated Switch plugin to a JMX object an use 'void putPlugin(String name, ObjectName objectName)' instead
66      * @param logicalPluginName the name of the plugin to get
67      * @param plugin the plugin obect or null to remove an existing plugin
68      */

69     void putPluginObject(String JavaDoc logicalPluginName, Object JavaDoc plugin);
70 }
71
Popular Tags