TAO_PI
2.1.6
|
An implementation of the PortableInterceptor::ORBInitInfo_3_1 interface. More...
#include <ORBInitInfo.h>
Public Member Functions | |
TAO_ORBInitInfo (TAO_ORB_Core *orb_core, int argc, char *argv[], PortableInterceptor::SlotId slotid) | |
Constructor. | |
virtual const char * | _interface_repository_id (void) const |
PortableInterceptor::ORBInitInfo Methods | |
These methods are exported by the PortableInterceptor::ORBInitInfo interface. | |
virtual CORBA::StringSeq * | arguments (void) |
virtual char * | orb_id (void) |
Return the ORBid for the ORB currently being initialized. | |
virtual IOP::CodecFactory_ptr | codec_factory (void) |
virtual void | register_initial_reference (const char *id, CORBA::Object_ptr obj) |
virtual CORBA::Object_ptr | resolve_initial_references (const char *id) |
virtual void | add_client_request_interceptor (PortableInterceptor::ClientRequestInterceptor_ptr interceptor) |
virtual void | add_server_request_interceptor (PortableInterceptor::ServerRequestInterceptor_ptr interceptor) |
virtual void | add_ior_interceptor (PortableInterceptor::IORInterceptor_ptr interceptor) |
virtual void | add_client_request_interceptor_with_policy (PortableInterceptor::ClientRequestInterceptor_ptr interceptor, const CORBA::PolicyList &policies) |
virtual void | add_server_request_interceptor_with_policy (PortableInterceptor::ServerRequestInterceptor_ptr interceptor, const CORBA::PolicyList &policies) |
virtual void | add_ior_interceptor_with_policy (PortableInterceptor::IORInterceptor_ptr interceptor, const CORBA::PolicyList &policies) |
virtual PortableInterceptor::SlotId | allocate_slot_id (void) |
virtual void | register_policy_factory (CORBA::PolicyType type, PortableInterceptor::PolicyFactory_ptr policy_factory) |
virtual CORBA::ORB_ptr | _get_orb (void) |
TAO Extensions | |
These methods are not part of the PortableInterceptor specification, and are TAO-specific extensions. | |
size_t | allocate_tss_slot_id (ACE_CLEANUP_FUNC cleanup) |
Allocate a slot in the ORB's TSS resources. | |
TAO_ORB_Core * | orb_core (void) const |
void | invalidate (void) |
Invalidate this ORBInitInfo instance. | |
PortableInterceptor::SlotId | slot_count (void) const |
![]() | |
virtual | ~LocalObject (void) |
virtual CORBA::Boolean | _non_existent (void) |
virtual char * | _repository_id (void) |
virtual CORBA::InterfaceDef_ptr | _get_interface (void) |
virtual CORBA::Object_ptr | _get_component (void) |
virtual void | _create_request (CORBA::Context_ptr ctx, const char *operation, CORBA::NVList_ptr arg_list, CORBA::NamedValue_ptr result, CORBA::Request_ptr &request, CORBA::Flags req_flags) |
virtual void | _create_request (CORBA::Context_ptr ctx, const char *operation, CORBA::NVList_ptr arg_list, CORBA::NamedValue_ptr result, CORBA::ExceptionList_ptr exclist, CORBA::ContextList_ptr ctxtlist, CORBA::Request_ptr &request, CORBA::Flags req_flags) |
virtual CORBA::Request_ptr | _request (const char *operation) |
CORBA::Policy_ptr | _get_policy (CORBA::PolicyType type) |
CORBA::Policy_ptr | _get_cached_policy (TAO_Cached_Policy_Type type) |
CORBA::Object_ptr | _set_policy_overrides (const CORBA::PolicyList &policies, CORBA::SetOverrideType set_add) |
CORBA::PolicyList * | _get_policy_overrides (const CORBA::PolicyTypeSeq &types) |
CORBA::Boolean | _validate_connection (CORBA::PolicyList_out inconsistent_policies) |
virtual CORBA::ULong | _hash (CORBA::ULong maximum) |
virtual CORBA::Boolean | _is_equivalent (CORBA::Object_ptr other_obj) |
virtual TAO::ObjectKey * | _key (void) |
virtual | ~Object (void) |
virtual TAO_Abstract_ServantBase * | _servant (void) const |
virtual CORBA::Boolean | _is_collocated (void) const |
virtual CORBA::Boolean | _is_local (void) const |
Object (TAO_Stub *p, CORBA::Boolean collocated=false, TAO_Abstract_ServantBase *servant=0, TAO_ORB_Core *orb_core=0) | |
Object (IOP::IOR *ior, TAO_ORB_Core *orb_core) | |
virtual TAO_Stub * | _stubobj (void) const |
virtual TAO_Stub * | _stubobj (void) |
virtual void | _proxy_broker (TAO::Object_Proxy_Broker *proxy_broker) |
virtual CORBA::Boolean | marshal (TAO_OutputCDR &cdr) |
CORBA::Boolean | is_evaluated (void) const |
IOP::IOR * | steal_ior (void) |
const IOP::IOR & | ior (void) const |
virtual bool | can_convert_to_ior (void) const |
virtual char * | convert_to_ior (bool use_omg_ior_format, const char *ior_prefix) const |
void | _decr_refcount (void) |
virtual void | _add_ref (void) |
virtual void | _remove_ref (void) |
virtual CORBA::ULong | _refcount_value (void) const |
virtual CORBA::Boolean | _is_a (const char *logical_type_id) |
Protected Member Functions | |
~TAO_ORBInitInfo (void) | |
void | check_validity (void) |
![]() | |
LocalObject (void) | |
Object (int dummy=0) | |
TAO::Object_Proxy_Broker * | proxy_broker () const |
Private Member Functions | |
TAO_ORBInitInfo (const TAO_ORBInitInfo &) | |
void | operator= (const TAO_ORBInitInfo &) |
Private Attributes | |
TAO_ORB_Core * | orb_core_ |
Reference to the ORB Core. | |
int | argc_ |
char ** | argv_ |
The argument vector passed to CORBA::ORB_init(). | |
IOP::CodecFactory_var | codec_factory_ |
PortableInterceptor::SlotId | slot_count_ |
The number of allocated slots. |
Reference Related Methods | |
typedef TAO_ORBInitInfo_ptr | _ptr_type |
typedef TAO_ORBInitInfo_var | _var_type |
static TAO_ORBInitInfo_ptr | _duplicate (TAO_ORBInitInfo_ptr obj) |
static TAO_ORBInitInfo_ptr | _narrow (CORBA::Object_ptr obj) |
static TAO_ORBInitInfo_ptr | _unchecked_narrow (CORBA::Object_ptr obj) |
static TAO_ORBInitInfo_ptr | _nil (void) |
Additional Inherited Members | |
![]() | |
typedef LocalObject_out | _out_type |
![]() | |
![]() | |
static LocalObject_ptr | _duplicate (LocalObject_ptr obj) |
static CORBA::Boolean | marshal (const Object_ptr x, TAO_OutputCDR &cdr) |
static void | _tao_any_destructor (void *) |
static CORBA::Boolean | is_nil_i (CORBA::Object_ptr obj) |
static void | tao_object_initialize (Object *) |
static CORBA::Object_ptr | _duplicate (CORBA::Object_ptr obj) |
![]() | |
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > | refcount_ |
![]() |
An implementation of the PortableInterceptor::ORBInitInfo_3_1 interface.
This class encapsulates the data passed to ORBInitializers during ORB initialization.
Reimplemented from CORBA::LocalObject.
Reimplemented from CORBA::LocalObject.
TAO_ORBInitInfo::TAO_ORBInitInfo | ( | TAO_ORB_Core * | orb_core, |
int | argc, | ||
char * | argv[], | ||
PortableInterceptor::SlotId | slotid | ||
) |
Constructor.
|
protected |
Destructor is protected to enforce proper memory management through the reference counting mechanism.
|
private |
Prevent copying through the copy constructor and the assignment operator.
|
static |
|
virtual |
Return the argument vector for the ORB currently being initialized as a string sequence.
Reimplemented from CORBA::LocalObject.
|
virtual |
Reimplemented from CORBA::LocalObject.
|
static |
Reimplemented from CORBA::LocalObject.
|
inlinestatic |
Reimplemented from CORBA::LocalObject.
|
static |
|
virtual |
Register a client request interceptor with the ORB currently being initialized.
|
virtual |
Register a client request interceptor with the ORB currently being initialized, along with a list of policies.
|
virtual |
Register an IOR interceptor with the ORB currently being initialized.
|
virtual |
Register an IOR interceptor with the ORB currently being initialized, along with a list of policies.
|
virtual |
Register a server request interceptor with the ORB currently being initialized.
|
virtual |
Register a server request interceptor with the ORB currently being initialized, along with a list of policies.
|
virtual |
Reserve a slot in table found within the PortableInterceptor::Current object.
size_t TAO_ORBInitInfo::allocate_tss_slot_id | ( | ACE_CLEANUP_FUNC | cleanup | ) |
Allocate a slot in the ORB's TSS resources.
TAO uses a single TSS key for these resources, so it is useful to place TSS objects in TAO's TSS resources on platforms where the number of TSS keys is low. The returned SlotId can be used to index into the array stored in ORB's TSS resources structure.
|
virtual |
Return the argument vector for the ORB currently being initialized as a string sequence.
|
protected |
Check if this ORBInitInfo instance is valid. Once post_init() has been called on each of the ORBInitializers, this ORBInitInfo is no longer valid. Throw an exception in that case.
|
virtual |
Return the CodecFactory for the ORB currently being initialized.
|
inline |
Invalidate this ORBInitInfo instance.
|
private |
|
inline |
Return a pointer to the ORB Core associated with the ORB being initialized. The ORB Core is essentialy fully initialized by the time ORBInitializer::post_init() is invoked. As such, it is generally best if this method is used in that method.
Reimplemented from CORBA::LocalObject.
|
virtual |
Return the ORBid for the ORB currently being initialized.
|
virtual |
Register a mapping between a string and a corresponding object reference with the ORB being initialized. This method is particularly useful for registering references to local (locality constrained) objects. Note that this method should be called in ORBInitializer::pre_init() so that the registered reference will be available to the resolve_initial_references() that may be called in the ORBInitializer::post_init() call.
|
virtual |
Register a policy factory of the given policy type with the ORB currently being initialized.
|
virtual |
Obtain a reference to an object that may not yet be available via the usual CORBA::ORB::resolve_initial_references() mechanism since the ORB may not be fully initialized yet.
|
inline |
Return the number of allocated slots in for the PICurrent object.
|
private |
The number of arguments in the argument vector passed to CORBA::ORB_init().
|
private |
The argument vector passed to CORBA::ORB_init().
|
private |
Reference to the CodecFactory returned by ORBInitInfo::codec_factory().
|
private |
Reference to the ORB Core.
Reimplemented from CORBA::Object.
|
private |
The number of allocated slots.