Package org.jboss.iiop.csiv2

Source Code of org.jboss.iiop.csiv2.CSIv2Initializer

/*    */ package org.jboss.iiop.csiv2;
/*    */
/*    */ import org.jacorb.security.ssl.SSLPolicyFactory;
/*    */ import org.omg.CORBA.LocalObject;
/*    */ import org.omg.IOP.Codec;
/*    */ import org.omg.IOP.CodecFactory;
/*    */ import org.omg.IOP.Encoding;
/*    */ import org.omg.PortableInterceptor.ORBInitInfo;
/*    */ import org.omg.PortableInterceptor.ORBInitializer;
/*    */
/*    */ public class CSIv2Initializer extends LocalObject
/*    */   implements ORBInitializer
/*    */ {
/*    */   public void pre_init(ORBInitInfo info)
/*    */   {
/*    */   }
/*    */
/*    */   public void post_init(ORBInitInfo info)
/*    */   {
/*    */     try
/*    */     {
/* 64 */       Encoding encoding = new Encoding(0, 1, 0);
/*    */
/* 67 */       Codec codec = info.codec_factory().create_codec(encoding);
/*    */
/* 70 */       info.add_ior_interceptor(new CSIv2IORInterceptor(codec));
/*    */
/* 73 */       info.register_policy_factory(-2023406815, new CSIv2PolicyFactory(codec));
/*    */
/* 75 */       info.register_policy_factory(101, new SSLPolicyFactory());
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 79 */       throw new RuntimeException("Unexpected " + e);
/*    */     }
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.iiop.csiv2.CSIv2Initializer
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.iiop.csiv2.CSIv2Initializer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.