equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.corba.se.spi.protocol; |
26 package com.sun.corba.se.spi.protocol; |
27 |
27 |
|
28 import java.io.Closeable; |
|
29 |
28 import org.omg.PortableInterceptor.ObjectReferenceTemplate ; |
30 import org.omg.PortableInterceptor.ObjectReferenceTemplate ; |
29 import org.omg.PortableInterceptor.Interceptor ; |
31 import org.omg.PortableInterceptor.Interceptor ; |
30 import org.omg.PortableInterceptor.Current ; |
32 import org.omg.PortableInterceptor.Current ; |
31 import org.omg.PortableInterceptor.PolicyFactory ; |
33 import org.omg.PortableInterceptor.PolicyFactory ; |
32 import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ; |
34 import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName ; |
49 import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage ; |
51 import com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage ; |
50 |
52 |
51 /** This interface defines the PI interface that is used to interface the rest of the |
53 /** This interface defines the PI interface that is used to interface the rest of the |
52 * ORB to the PI implementation. |
54 * ORB to the PI implementation. |
53 */ |
55 */ |
54 public interface PIHandler { |
56 public interface PIHandler extends Closeable { |
55 /** Complete the initialization of the PIHandler. This will execute the methods |
57 /** Complete the initialization of the PIHandler. This will execute the methods |
56 * on the ORBInitializers, if any are defined. This must be done here so that |
58 * on the ORBInitializers, if any are defined. This must be done here so that |
57 * the ORB can obtain the PIHandler BEFORE the ORBInitializers run, since they |
59 * the ORB can obtain the PIHandler BEFORE the ORBInitializers run, since they |
58 * will need access to the PIHandler through the ORB. |
60 * will need access to the PIHandler through the ORB. |
59 */ |
61 */ |