KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableServer > ServantLocatorPOATie


1 package org.omg.PortableServer;
2
3 /** stream-based skeleton class */
4
5 import org.omg.PortableServer.POA JavaDoc;
6
7 public class ServantLocatorPOATie
8     extends ServantLocatorPOA JavaDoc
9 {
10     private ServantLocatorOperations JavaDoc _delegate;
11
12     private POA JavaDoc _poa;
13     public ServantLocatorPOATie(ServantLocatorOperations JavaDoc delegate)
14     {
15     _delegate = delegate;
16     }
17     public ServantLocatorPOATie(ServantLocatorOperations JavaDoc delegate, POA JavaDoc poa)
18     {
19     _delegate = delegate;
20     _poa = poa;
21     }
22     public ServantLocator JavaDoc _this()
23     {
24     return ServantLocatorHelper.narrow(_this_object());
25     }
26
27     public ServantLocatorOperations JavaDoc _delegate()
28     {
29     return _delegate;
30     }
31     public void _delegate(ServantLocatorOperations JavaDoc delegate)
32     {
33     _delegate = delegate;
34     }
35     public void postinvoke(byte[] oid,
36                org.omg.PortableServer.POA JavaDoc adapter,
37                java.lang.String JavaDoc operation,
38                java.lang.Object JavaDoc the_cookie,
39                org.omg.PortableServer.Servant JavaDoc the_servant)
40     throws org.omg.PortableServer.ForwardRequest JavaDoc
41     {
42     _delegate.postinvoke(oid,adapter,operation,the_cookie,the_servant);
43     }
44
45     public org.omg.PortableServer.Servant JavaDoc preinvoke(byte[] oid,
46                             org.omg.PortableServer.POA JavaDoc adapter,
47                             java.lang.String JavaDoc operation,
48                             org.omg.PortableServer.ServantLocatorPackage.CookieHolder JavaDoc the_cookie)
49     throws org.omg.PortableServer.ForwardRequest JavaDoc
50     {
51     return _delegate.preinvoke(oid,adapter,operation,the_cookie);
52     }
53 }
54
55
56
Popular Tags