#include <Strategies_T.h>
Inheritance diagram for ACE_Creation_Strategy:
Public Methods | |
ACE_Creation_Strategy (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance()) | |
Default constructor. More... | |
int | open (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance()) |
A <Thread_Manager> is useful when creating active objects and the <ACE_Reactor> is used to initialize the service handler's reactor. More... | |
virtual | ~ACE_Creation_Strategy (void) |
virtual int | make_svc_handler (SVC_HANDLER *&sh) |
Create a SVC_HANDLER with the appropriate creation strategy. More... | |
void | dump (void) const |
Dump the state of an object. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Protected Attributes | |
ACE_Thread_Manager * | thr_mgr_ |
Pointer to a thread manager. More... | |
ACE_Reactor * | reactor_ |
Pointer to an ACE_Reactor. More... |
The default behavior is to make a new SVC_HANDLER. However, subclasses can override this strategy to perform SVC_HANDLER creation in any way that they like (such as creating subclass instances of SVC_HANDLER, using a singleton, dynamically linking the handler, etc.).
|
Default constructor.
|
|
|
|
Dump the state of an object.
Reimplemented in ACE_Singleton_Strategy, and ACE_DLL_Strategy. |
|
Create a SVC_HANDLER with the appropriate creation strategy. The default behavior of this method is to make a new <SVC_HANDLER> if <sh> == 0 (passing in the <Thread_Manager>), else <sh> is unchanged. Returns -1 on failure, else 0. Reimplemented in ACE_Singleton_Strategy, ACE_DLL_Strategy, and ACE_NOOP_Creation_Strategy. |
|
A <Thread_Manager> is useful when creating active objects and the <ACE_Reactor> is used to initialize the service handler's reactor.
|
|
Declare the dynamic allocation hooks.
Reimplemented in ACE_Singleton_Strategy, and ACE_DLL_Strategy. |
|
Pointer to an ACE_Reactor.
|
|
Pointer to a thread manager.
|