ACE_Framework_Component_T< Concrete > Class Template Reference

This class inherits the interface of the abstract ACE_Framework_Component class and is instantiated with the implementation of the concrete component class . More...

#include <Framework_Component_T.h>

Inheritance diagram for ACE_Framework_Component_T< Concrete >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Framework_Component_T< Concrete >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Framework_Component_T (Concrete *concrete)
 Constructor.

 ~ACE_Framework_Component_T (void)
 Destructor.

void close_singleton (void)
 Close the contained singleton.


Detailed Description

template<class Concrete>
class ACE_Framework_Component_T< Concrete >

This class inherits the interface of the abstract ACE_Framework_Component class and is instantiated with the implementation of the concrete component class .

This design is similar to the Adapter and Decorator patterns from the ``Gang of Four'' book. Note that need not inherit from a common class since ACE_Framework_Component provides the uniform virtual interface! (implementation based on ACE_Dumpable_Adapter in <ace/Dump_T.h>.

Definition at line 38 of file Framework_Component_T.h.


Constructor & Destructor Documentation

template<class Concrete>
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Framework_Component_T< Concrete >::ACE_Framework_Component_T Concrete *  concrete  ) 
 

Constructor.

Definition at line 11 of file Framework_Component_T.cpp.

References ACE_TRACE.

00012   : ACE_Framework_Component ((void *) concrete, concrete->dll_name (), concrete->name ())
00013 {
00014   ACE_TRACE ("ACE_Framework_Component_T<Concrete>::ctor");
00015 }

template<class Concrete>
ACE_Framework_Component_T< Concrete >::~ACE_Framework_Component_T void   ) 
 

Destructor.

Definition at line 18 of file Framework_Component_T.cpp.

References ACE_TRACE.

00019 {
00020   ACE_TRACE ("ACE_Framework_Component_T<Concrete>::~ACE_Framework_Component_T");
00021   Concrete::close_singleton ();
00022 }


Member Function Documentation

template<class Concrete>
void ACE_Framework_Component_T< Concrete >::close_singleton void   )  [virtual]
 

Close the contained singleton.

Implements ACE_Framework_Component.

Definition at line 25 of file Framework_Component_T.cpp.

References ACE_TRACE.

00026 {
00027   ACE_TRACE ("ACE_Framework_Component_T<Concrete>::close_singleton");
00028   Concrete::close_singleton ();
00029 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:22:25 2006 for ACE by doxygen 1.3.6