org.omg.PortableInterceptor
Interface ORBInitInfoOperations

All Known Subinterfaces:
ORBInitInfo sample code for org.omg.PortableInterceptor.ORBInitInfo definition code for org.omg.PortableInterceptor.ORBInitInfo

public interface ORBInitInfoOperations

Passed to each ORBInitializer, allowing it to to register interceptors and perform other duties while the ORB is initializing.

The ORBInitInfo object is only valid during ORB.init. If a service keeps a reference to its ORBInitInfo object and tries to use it after ORB.init returns, the object no longer exists and an OBJECT_NOT_EXIST exception shall be thrown.

See Also:
ORBInitializer sample code for org.omg.PortableInterceptor.ORBInitializer definition code for org.omg.PortableInterceptor.ORBInitializer

Method Summary
 void add_client_request_interceptor sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_client_request_interceptor(org.omg.PortableInterceptor.ClientRequestInterceptor) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_client_request_interceptor(org.omg.PortableInterceptor.ClientRequestInterceptor) (ClientRequestInterceptor sample code for org.omg.PortableInterceptor.ClientRequestInterceptor definition code for org.omg.PortableInterceptor.ClientRequestInterceptor  interceptor)
          Used to add a client-side request Interceptor to the list of client-side request Interceptors.
 void add_ior_interceptor sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_ior_interceptor(org.omg.PortableInterceptor.IORInterceptor) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_ior_interceptor(org.omg.PortableInterceptor.IORInterceptor) (IORInterceptor sample code for org.omg.PortableInterceptor.IORInterceptor definition code for org.omg.PortableInterceptor.IORInterceptor  interceptor)
          Used to add an IOR Interceptor to the list of IOR Interceptors.
 void add_server_request_interceptor sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_server_request_interceptor(org.omg.PortableInterceptor.ServerRequestInterceptor) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_server_request_interceptor(org.omg.PortableInterceptor.ServerRequestInterceptor) (ServerRequestInterceptor sample code for org.omg.PortableInterceptor.ServerRequestInterceptor definition code for org.omg.PortableInterceptor.ServerRequestInterceptor  interceptor)
          Used to add a server-side request Interceptor to the list of server-side request Interceptors.
 int allocate_slot_id sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.allocate_slot_id() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.allocate_slot_id() ()
          Called to allocate a slot on PortableInterceptor.Current.
 String sample code for java.lang.String definition code for java.lang.String [] arguments sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.arguments() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.arguments() ()
          Returns the arguments passed to ORB.init.
 CodecFactory sample code for org.omg.IOP.CodecFactory definition code for org.omg.IOP.CodecFactory codec_factory sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.codec_factory() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.codec_factory() ()
          Returns the IOP.CodecFactory.
 String sample code for java.lang.String definition code for java.lang.String orb_id sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.orb_id() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.orb_id() ()
          Returns the ID of the ORB being initialized.
 void register_initial_reference sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_initial_reference(java.lang.String, org.omg.CORBA.Object) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_initial_reference(java.lang.String, org.omg.CORBA.Object) (String sample code for java.lang.String definition code for java.lang.String  id, Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
          Identical to ORB.register_initial_reference.
 void register_policy_factory sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory) (int type, PolicyFactory sample code for org.omg.PortableInterceptor.PolicyFactory definition code for org.omg.PortableInterceptor.PolicyFactory  policy_factory)
          Registers a PolicyFactory for the given PolicyType.
 Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object resolve_initial_references sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.resolve_initial_references(java.lang.String) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.resolve_initial_references(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  id)
          Identical to ORB.resolve_initial_references.
 

Method Detail

arguments sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.arguments() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.arguments()

String sample code for java.lang.String definition code for java.lang.String [] arguments()
Returns the arguments passed to ORB.init. They may or may not contain the ORB's arguments.


orb_id sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.orb_id() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.orb_id()

String sample code for java.lang.String definition code for java.lang.String  orb_id()
Returns the ID of the ORB being initialized.


codec_factory sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.codec_factory() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.codec_factory()

CodecFactory sample code for org.omg.IOP.CodecFactory definition code for org.omg.IOP.CodecFactory  codec_factory()
Returns the IOP.CodecFactory. The CodecFactory is normally obtained via a call to ORB.resolve_initial_references( "CodecFactory" ), but since the ORB is not yet available and Interceptors, particularly when processing service contexts, will require a Codec, a means of obtaining a Codec is necessary during ORB initialization.


register_initial_reference sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_initial_reference(java.lang.String, org.omg.CORBA.Object) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_initial_reference(java.lang.String, org.omg.CORBA.Object)

void register_initial_reference(String sample code for java.lang.String definition code for java.lang.String  id,
                                Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
                                throws InvalidName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName 
Identical to ORB.register_initial_reference. This same functionality exists here because the ORB, not yet fully initialized, is not yet available but initial references may need to be registered as part of Interceptor registration. The only difference is that the version of this operation on the ORB uses PIDL (CORBA.ORB.ObjectId) and (CORBA.ORB.InvalidName) whereas the version in this interface uses IDL defined in this interface; the semantics are identical.

Throws:
InvalidName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName

resolve_initial_references sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.resolve_initial_references(java.lang.String) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.resolve_initial_references(java.lang.String)

Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  resolve_initial_references(String sample code for java.lang.String definition code for java.lang.String  id)
                                  throws InvalidName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName 
Identical to ORB.resolve_initial_references. This same functionality exists here because the ORB, not yet fully initialized, is not yet available but initial references may be required from the ORB as part of Interceptor registration. The only difference is that the version of this operation on the ORB uses PIDL (CORBA::ORB::ObjectId and CORBA::ORB::InvalidName) whereas the version in this interface uses IDL defined in this interface; the semantics are identical.

This operation is only valid during post_init.

Throws:
InvalidName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName

add_client_request_interceptor sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_client_request_interceptor(org.omg.PortableInterceptor.ClientRequestInterceptor) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_client_request_interceptor(org.omg.PortableInterceptor.ClientRequestInterceptor)

void add_client_request_interceptor(ClientRequestInterceptor sample code for org.omg.PortableInterceptor.ClientRequestInterceptor definition code for org.omg.PortableInterceptor.ClientRequestInterceptor  interceptor)
                                    throws DuplicateName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName 
Used to add a client-side request Interceptor to the list of client-side request Interceptors.

Parameters:
interceptor - The ClientRequestInterceptor to be added.
Throws:
DuplicateName - thrown if a client-side request Interceptor has already been registered with this Interceptor's name.

add_server_request_interceptor sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_server_request_interceptor(org.omg.PortableInterceptor.ServerRequestInterceptor) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_server_request_interceptor(org.omg.PortableInterceptor.ServerRequestInterceptor)

void add_server_request_interceptor(ServerRequestInterceptor sample code for org.omg.PortableInterceptor.ServerRequestInterceptor definition code for org.omg.PortableInterceptor.ServerRequestInterceptor  interceptor)
                                    throws DuplicateName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName 
Used to add a server-side request Interceptor to the list of server-side request Interceptors.

Parameters:
interceptor - The ServerRequestInterceptor to be added.
Throws:
DuplicateName - thrown if a server-side request Interceptor has already been registered with this Interceptor's name

add_ior_interceptor sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_ior_interceptor(org.omg.PortableInterceptor.IORInterceptor) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.add_ior_interceptor(org.omg.PortableInterceptor.IORInterceptor)

void add_ior_interceptor(IORInterceptor sample code for org.omg.PortableInterceptor.IORInterceptor definition code for org.omg.PortableInterceptor.IORInterceptor  interceptor)
                         throws DuplicateName sample code for org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName definition code for org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName 
Used to add an IOR Interceptor to the list of IOR Interceptors.

Parameters:
interceptor - The IORInterceptor to be added.
Throws:
DuplicateName - thrown if an IOR Interceptor has already been registered with this Interceptor's name.

allocate_slot_id sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.allocate_slot_id() definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.allocate_slot_id()

int allocate_slot_id()
Called to allocate a slot on PortableInterceptor.Current.

Note that while slot id's can be allocated within an ORB initializer, the slots themselves cannot be initialized.

Returns:
The index to the slot which has been allocated.
Throws:
BAD_INV_ORDER - thrown, with a standard minor code of 14, if set_slot or get_slot is called on the PICurrent within an ORB initializer.
See Also:
Current sample code for org.omg.PortableInterceptor.Current definition code for org.omg.PortableInterceptor.Current

register_policy_factory sample code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory) definition code for org.omg.PortableInterceptor.ORBInitInfoOperations.register_policy_factory(int, org.omg.PortableInterceptor.PolicyFactory)

void register_policy_factory(int type,
                             PolicyFactory sample code for org.omg.PortableInterceptor.PolicyFactory definition code for org.omg.PortableInterceptor.PolicyFactory  policy_factory)
Registers a PolicyFactory for the given PolicyType.

Parameters:
type - The policy type that the given PolicyFactory serves.
policy_factory - The factory for the given policy type.
Throws:
BAD_INV_ORDER - thrown, with a standard minor code of 16, if a PolicyFactory already exists for the given PolicyType.