当前位置: 首页>>代码示例>>Java>>正文


Java ORBInitializer类代码示例

本文整理汇总了Java中org.omg.PortableInterceptor.ORBInitializer的典型用法代码示例。如果您正苦于以下问题:Java ORBInitializer类的具体用法?Java ORBInitializer怎么用?Java ORBInitializer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ORBInitializer类属于org.omg.PortableInterceptor包,在下文中一共展示了ORBInitializer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: preInitORBInitializers

import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
 * Call pre_init on all ORB initializers
 */
private void preInitORBInitializers( ORBInitInfoImpl info ) {

    // Inform ORBInitInfo we are in pre_init stage
    info.setStage( ORBInitInfoImpl.STAGE_PRE_INIT );

    // Step through each initializer instantiation and call its
    // pre_init.  Ignore any exceptions.
    for( int i = 0; i < orb.getORBData().getORBInitializers().length;
        i++ ) {
        ORBInitializer init = orb.getORBData().getORBInitializers()[i];
        if( init != null ) {
            try {
                init.pre_init( info );
            }
            catch( Exception e ) {
                // As per orbos/99-12-02, section 9.3.1.2, "If there are
                // any exceptions, the ORB shall ignore them and proceed."
            }
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:25,代码来源:PIHandlerImpl.java

示例2: postInitORBInitializers

import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
 * Call post_init on all ORB initializers
 */
private void postInitORBInitializers( ORBInitInfoImpl info ) {

    // Inform ORBInitInfo we are in post_init stage
    info.setStage( ORBInitInfoImpl.STAGE_POST_INIT );

    // Step through each initializer instantiation and call its post_init.
    // Ignore any exceptions.
    for( int i = 0; i < orb.getORBData().getORBInitializers().length;
        i++ ) {
        ORBInitializer init = orb.getORBData().getORBInitializers()[i];
        if( init != null ) {
            try {
                init.post_init( info );
            }
            catch( Exception e ) {
                // As per orbos/99-12-02, section 9.3.1.2, "If there are
                // any exceptions, the ORB shall ignore them and proceed."
            }
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:25,代码来源:PIHandlerImpl.java

示例3: getORBInitializers

import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
public ORBInitializer[] getORBInitializers()
{
    return orbInitializers ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:ORBDataParserImpl.java

示例4: checkProperties

import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
 * Scan the given properties for the possible interceptors.
 */
private void checkProperties(Properties props)
{
  if (props == null)
    {
      return;
    }

  Enumeration names = props.propertyNames();
  java.lang.Object key;
  String sk;

  while (names.hasMoreElements())
    {
      key = names.nextElement();
      if (key != null)
        {
          sk = key.toString();
          if (sk.startsWith(m_prefix))
            {
              try
                {
                  String cn = sk.substring(m_prefix.length());
                  Class iClass = ObjectCreator.forName(cn);

                  ORBInitializer initializer =
                    (ORBInitializer) iClass.newInstance();
                  m_initializers.add(initializer);
                }
              catch (Exception exc)
                {
                  // OMG states we should not throw an exception, but
                  // this will help the user to detect his error
                  // in initialiser properties. Should never print during
                  // normal run.
                  System.err.println(sk + " failed");
                }
            }
        }
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:44,代码来源:Registrator.java

示例5: checkProperties

import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
/**
 * Scan the given properties for the possible interceptors.
 */
private void checkProperties(Properties props)
{
  if (props == null)
    {
      return;
    }

  Enumeration names = props.propertyNames();
  java.lang.Object key;
  String sk;

  while (names.hasMoreElements())
    {
      key = names.nextElement();
      if (key != null)
        {
          sk = key.toString();
          if (sk.startsWith(m_prefix))
            {
              try
                {
                  String cn = sk.substring(m_prefix.length());
                  Class iClass = ObjectCreator.forName(cn);
                  
                  ORBInitializer initializer =
                    (ORBInitializer) iClass.newInstance();
                  m_initializers.add(initializer);
                }
              catch (Exception exc)
                {
                  // OMG states we should not throw an exception, but
                  // this will help the user to detect his error
                  // in initialiser properties. Should never print during
                  // normal run.
                  System.err.println(sk + " failed");
                }
            }
        }
    }
}
 
开发者ID:nmldiegues,项目名称:jvm-stm,代码行数:44,代码来源:Registrator.java

示例6: getORBInitializers

import org.omg.PortableInterceptor.ORBInitializer; //导入依赖的package包/类
public ORBInitializer[] getORBInitializers(); 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:2,代码来源:ORBData.java


注:本文中的org.omg.PortableInterceptor.ORBInitializer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。