KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > test > orb > IIOPAddressORBInitializer


1
2 package org.jacorb.test.orb;
3
4 import org.omg.CORBA.*;
5 import org.omg.PortableInterceptor.*;
6 import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName JavaDoc;
7
8 /**
9  * @author Andre Spiegel
10  * @version $Id: IIOPAddressORBInitializer.java,v 1.1 2003/04/09 09:13:31 andre.spiegel Exp $
11  */

12 public class IIOPAddressORBInitializer
13     extends LocalObject
14     implements ORBInitializer
15 {
16     public void pre_init (ORBInitInfo info)
17     {
18         try
19         {
20             info.add_ior_interceptor (new IIOPAddressInterceptor());
21         }
22         catch (DuplicateName JavaDoc ex)
23         {
24             throw new RuntimeException JavaDoc (ex.toString());
25         }
26     }
27
28     public void post_init (ORBInitInfo info)
29     {
30
31     }
32
33 }
34
Popular Tags