This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


org.omg.PortableInterceptor
interface ORBInitInfoOperations


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.


Method Summary
 void

          Used to add a client-side request Interceptor to the list of client-side request Interceptors.
 void

          Used to add an IOR Interceptor to the list of IOR Interceptors.
 void

          Used to add a server-side request Interceptor to the list of server-side request Interceptors.
 int

          Called to allocate a slot on PortableInterceptor.Current.
 String[]

          Returns the arguments passed to ORB.init.
 CodecFactory

          Returns the IOP.CodecFactory.
 String

          Returns the ID of the ORB being initialized.
 void

          Identical to ORB.register_initial_reference.
 void
register_policy_factory(int type, PolicyFactory policy_factory)

          Registers a PolicyFactory for the given PolicyType.
 Object

          Identical to ORB.resolve_initial_references.
 

Method Detail

add_client_request_interceptor

public void add_client_request_interceptor(ClientRequestInterceptor interceptor)
                                    throws 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

add_ior_interceptor

public void add_ior_interceptor(IORInterceptor interceptor)
                         throws DuplicateName
Used to add an IOR Interceptor to the list of IOR Interceptors.

Parameters:
interceptor - The IORInterceptor to be added.
Throws:
DuplicateName

add_server_request_interceptor

public void add_server_request_interceptor(ServerRequestInterceptor interceptor)
                                    throws 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

allocate_slot_id

public 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.

arguments

public String[] arguments()
Returns the arguments passed to ORB.init. They may or may not contain the ORB's arguments.


codec_factory

public 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.


orb_id

public String orb_id()
Returns the ID of the ORB being initialized.


register_initial_reference

public void register_initial_reference(String id,
                                       Object obj)
                                throws 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.

Parameters:
id
obj
Throws:
InvalidName

register_policy_factory

public void register_policy_factory(int type,
                                    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.

resolve_initial_references

public Object resolve_initial_references(String id)
                                  throws 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.

Parameters:
id
Throws:
InvalidName


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.