コード例 #1
0
ファイル: SInitializer.java プロジェクト: aabykov/JacORB
  /**
   * <code>pre_init</code> does nothing..
   *
   * @param info an <code>ORBInitInfo</code> value
   */
  public void pre_init(ORBInitInfo info) {
    try {
      slotID = info.allocate_slot_id();

      info.add_server_request_interceptor(new SInterceptor(((ORBInitInfoImpl) info).getORB()));
    } catch (DuplicateName e) {
      throw new RuntimeException();
    }
  }
コード例 #2
0
  /**
   * This method registers the interceptors.
   *
   * @param info an <code>ORBInitInfo</code> value
   */
  public void post_init(ORBInitInfo info) {
    try {
      slotID = info.allocate_slot_id();

      info.add_server_request_interceptor(new SInterceptor(((ORBInitInfoImpl) info).getORB()));
    } catch (DuplicateName e) {
      e.printStackTrace();
    }
  }