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

TAO_Default_Endpoint_Selector_Factory Class Reference

Factory for initializing <Endpoint_Selection_State> and obtaining appropriate <Invocation_Endpoint_Selector>. More...

#include <Default_Endpoint_Selector_Factory.h>

Inheritance diagram for TAO_Default_Endpoint_Selector_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_Default_Endpoint_Selector_Factory:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Default_Endpoint_Selector_Factory (void)
 Constructor. More...

virtual ~TAO_Default_Endpoint_Selector_Factory (void)
 Destructor. More...

virtual TAO_Invocation_Endpoint_Selectorget_selector (TAO_GIOP_Invocation *invocation ACE_ENV_ARG_DECL)
 Get an Invocation's endpoint selection strategy and initialize the endpoint selection state instance. More...


Protected Attributes

TAO_Default_Endpoint_Selectordefault_endpoint_selector_
 The possible endpoint selector strategies that can be returned by this factory. More...


Detailed Description

Factory for initializing <Endpoint_Selection_State> and obtaining appropriate <Invocation_Endpoint_Selector>.

Used by Invocation classes to intialize its endpoint selection strategy and state based on the effective policies. Endpoint selection strategies are stateless objects - all the state they need is contained by Invocation in <Endpoint_Selection_State>. Thus, rather than allocating an endpoint selection strategy object for each Invocation, the factory simply returns the appropriate one from the set preallocated in the ORB_Core. One endpoint selection strategy object can be used by many invocations concurrently.

Definition at line 50 of file Default_Endpoint_Selector_Factory.h.


Constructor & Destructor Documentation

TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory void   
 

Constructor.

Definition at line 13 of file Default_Endpoint_Selector_Factory.cpp.

References ACE_NEW.

00014 {
00015   ACE_NEW (this->default_endpoint_selector_,
00016            TAO_Default_Endpoint_Selector);
00017 
00018 }

TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory void    [virtual]
 

Destructor.

Definition at line 20 of file Default_Endpoint_Selector_Factory.cpp.

References default_endpoint_selector_.

00021 {
00022   delete this->default_endpoint_selector_;
00023 }


Member Function Documentation

virtual TAO_Invocation_Endpoint_Selector* TAO_Default_Endpoint_Selector_Factory::get_selector TAO_GIOP_Invocation *invocation    ACE_ENV_ARG_DECL [virtual]
 

Get an Invocation's endpoint selection strategy and initialize the endpoint selection state instance.

Implements TAO_Endpoint_Selector_Factory.


Member Data Documentation

TAO_Default_Endpoint_Selector* TAO_Default_Endpoint_Selector_Factory::default_endpoint_selector_ [protected]
 

The possible endpoint selector strategies that can be returned by this factory.

Definition at line 70 of file Default_Endpoint_Selector_Factory.h.

Referenced by ~TAO_Default_Endpoint_Selector_Factory.


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