3 //=============================================================================
5 * @file LifespanStrategyTransient.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
11 #ifndef TAO_LIFESPANSTRATEGYTRANSIENT_H
12 #define TAO_LIFESPANSTRATEGYTRANSIENT_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/LifespanStrategy.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/PortableServer/Creation_Time.h"
22 #include "tao/Object_KeyC.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace Portable_Server
30 class LifespanStrategyTransient
: public LifespanStrategy
33 LifespanStrategyTransient ();
35 void notify_startup () override
;
37 void notify_shutdown () override
;
39 char key_type () const;
41 CORBA::Boolean
is_persistent () const override
;
43 CORBA::ULong
key_length () const override
;
45 void create_key (CORBA::Octet
*buffer
, CORBA::ULong
& starting_at
) override
;
47 bool validate (CORBA::Boolean is_persistent
,
48 const TAO::Portable_Server::Temporary_Creation_Time
& creation_time
) const override
;
50 /// Check the state of the POA.
51 void check_state () override
;
53 bool use_imr () const override
;
55 CORBA::Object_ptr
imr_key_to_object (const TAO::ObjectKey
&key
, const char *type_id
) const override
;
58 TAO::Portable_Server::Creation_Time
const creation_time_
;
60 } /* namespace Portable_Server */
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #include /**/ "ace/post.h"
66 #endif /* TAO_LIFESPANSTRATEGYTRANSIENT_H */