Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_PICurrent_ORBInitializer Class Reference

ORBInitializer for the PICurrent support. More...

#include <PICurrent_ORBInitializer.h>

Inheritance diagram for TAO_PICurrent_ORBInitializer:

Inheritance graph
[legend]
Collaboration diagram for TAO_PICurrent_ORBInitializer:

Collaboration graph
[legend]
List of all members.

Public Methods

PortableInterceptor::ORBInitializer Methods
Methods required by the PortableInterceptor::ORBInitializer interface.

virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)

Detailed Description

ORBInitializer for the PICurrent support.

This class simply registers the PICurrent object with the ORB resolve_initial_references() mechanism.

Definition at line 50 of file PICurrent_ORBInitializer.h.


Member Function Documentation

void TAO_PICurrent_ORBInitializer::post_init PortableInterceptor::ORBInitInfo_ptr info    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::ORBInitializer.

Definition at line 54 of file PICurrent_ORBInitializer.cpp.

References ACE_ENV_ARG_DECL_NOT_USED.

00058 {
00059 }

void TAO_PICurrent_ORBInitializer::pre_init PortableInterceptor::ORBInitInfo_ptr info    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Implements PortableInterceptor::ORBInitializer.

Definition at line 19 of file PICurrent_ORBInitializer.cpp.

References TAO_ORBInitInfo::_narrow, ACE_CHECK, ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, ACE_NEW_THROW_EX, PortableInterceptor::Current_var::in, and TAO_DEFAULT_MINOR_CODE.

00023 {
00024   TAO_ORBInitInfo_var tao_info =
00025     TAO_ORBInitInfo::_narrow (info ACE_ENV_ARG_PARAMETER);
00026   ACE_CHECK;
00027 
00028   TAO_ORB_Core *orb_core = tao_info->orb_core ();
00029 
00030   TAO_PICurrent *tao_pi_current = 0;
00031   ACE_NEW_THROW_EX (tao_pi_current,
00032                     TAO_PICurrent (orb_core),
00033                     CORBA::NO_MEMORY (
00034                       CORBA::SystemException::_tao_minor_code (
00035                         TAO_DEFAULT_MINOR_CODE,
00036                         ENOMEM),
00037                       CORBA::COMPLETED_NO));
00038   ACE_CHECK;
00039 
00040   PortableInterceptor::Current_var current = tao_pi_current;
00041 
00042   // The PICurrent is stateless and reentrant, so share a single
00043   // instance between all ORBs.
00044   info->register_initial_reference ("PICurrent",
00045                                     current.in ()
00046                                      ACE_ENV_ARG_PARAMETER);
00047   ACE_CHECK;
00048 
00049   // Cache the downcasted pointer in the ORB Core.
00050   orb_core->pi_current (tao_pi_current);
00051 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:33:56 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002