KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.PortableServer;
2
3 /** stream-based skeleton class */
4
5 import org.omg.PortableServer.POA JavaDoc;
6 public class ServantActivatorPOATie
7     extends ServantActivatorPOA JavaDoc
8 {
9     private ServantActivatorOperations JavaDoc _delegate;
10     private POA JavaDoc _poa;
11
12     public ServantActivatorPOATie(ServantActivatorOperations JavaDoc delegate)
13     {
14     _delegate = delegate;
15     }
16
17     public ServantActivatorPOATie(ServantActivatorOperations JavaDoc delegate, POA JavaDoc poa)
18     {
19     _delegate = delegate;
20     _poa = poa;
21     }
22
23     public ServantActivator JavaDoc _this()
24     {
25     return ServantActivatorHelper.narrow(_this_object());
26     }
27
28     public ServantActivatorOperations JavaDoc _delegate()
29     {
30     return _delegate;
31     }
32     public void _delegate(ServantActivatorOperations JavaDoc delegate)
33     {
34     _delegate = delegate;
35     }
36
37     public void etherealize(byte[] oid, org.omg.PortableServer.POA JavaDoc adapter,
38                 org.omg.PortableServer.Servant JavaDoc serv,
39                 boolean cleanup_in_progress,
40                 boolean remaining_activations)
41     {
42     _delegate.etherealize(oid,adapter,serv,cleanup_in_progress,remaining_activations);
43     }
44
45     public org.omg.PortableServer.Servant JavaDoc incarnate(byte[] oid,
46                             org.omg.PortableServer.POA JavaDoc adapter)
47     throws org.omg.PortableServer.ForwardRequest JavaDoc
48     {
49     return _delegate.incarnate(oid,adapter);
50     }
51 }
52
53
54
Popular Tags