3 //=============================================================================
5 * @file LifespanStrategyPersistent.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
11 #ifndef TAO_LIFESPANSTRATEGYPERSISTENT_H
12 #define TAO_LIFESPANSTRATEGYPERSISTENT_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/Object_KeyC.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 namespace Portable_Server
31 class LifespanStrategyPersistent
32 : public LifespanStrategy
35 LifespanStrategyPersistent ();
37 void strategy_init(TAO_Root_POA
*poa
) override
;
39 void notify_startup () override
;
41 void notify_shutdown () override
;
43 char key_type () const;
45 CORBA::Boolean
is_persistent () const override
;
47 CORBA::ULong
key_length () const override
;
49 void create_key (CORBA::Octet
*buffer
, CORBA::ULong
& starting_at
) override
;
52 validate (CORBA::Boolean is_persistent
,
53 const TAO::Portable_Server::Temporary_Creation_Time
& creation_time
) const override
;
55 /// Check the state of the POA.
56 void check_state () override
;
58 bool use_imr () const override
;
60 CORBA::Object_ptr
imr_key_to_object(const TAO::ObjectKey
&key
, const char *type_id
) const override
;
65 } /* namespace Portable_Server */
68 TAO_END_VERSIONED_NAMESPACE_DECL
70 #include /**/ "ace/post.h"
71 #endif /* TAO_LIFESPANSTRATEGYPERSISTENT_H */