00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "tao/PortableServer/LifespanStrategy.h"
00013
00014 ACE_RCSID (PortableServer,
00015 LifespanStrategy,
00016 "LifespanStrategy.cpp,v 1.5 2006/03/10 07:19:13 jtc Exp")
00017
00018 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00019
00020 namespace TAO
00021 {
00022 namespace Portable_Server
00023 {
00024 LifespanStrategy::LifespanStrategy () :
00025 poa_ (0)
00026 {
00027 }
00028
00029 void
00030 LifespanStrategy::strategy_init (
00031 TAO_Root_POA *poa
00032 ACE_ENV_ARG_DECL_NOT_USED)
00033 {
00034 poa_ = poa;
00035 }
00036
00037 void
00038 LifespanStrategy::strategy_cleanup(
00039 ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
00040 {
00041 poa_ = 0;
00042 }
00043
00044 CORBA::ULong
00045 LifespanStrategy::key_type_length (void) const
00046 {
00047 return sizeof (char);
00048 }
00049 }
00050 }
00051
00052 TAO_END_VERSIONED_NAMESPACE_DECL