1 #include "tao/DynamicInterface/Dynamic_Adapter_Impl.h"
2 #include "tao/DynamicInterface/Request.h"
3 #include "tao/DynamicInterface/Server_Request.h"
4 #include "tao/ORB_Core.h"
5 #include "tao/SystemException.h"
7 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
9 TAO_Dynamic_Adapter_Impl::TAO_Dynamic_Adapter_Impl ()
13 TAO_Dynamic_Adapter_Impl::~TAO_Dynamic_Adapter_Impl ()
18 TAO_Dynamic_Adapter_Impl::create_request (
19 CORBA::Object_ptr obj
,
21 const char *operation
,
22 CORBA::NVList_ptr arg_list
,
23 CORBA::NamedValue_ptr result
,
24 CORBA::ExceptionList_ptr exceptions
,
25 CORBA::Request_ptr
&request
,
26 CORBA::Flags req_flags
)
28 ACE_NEW_THROW_EX (request
,
38 CORBA::SystemException::_tao_minor_code (
42 CORBA::COMPLETED_MAYBE
47 TAO_Dynamic_Adapter_Impl::request (CORBA::Object_ptr obj
,
49 const char *operation
)
51 CORBA::Request_ptr req
= CORBA::Request::_nil ();
52 ACE_NEW_THROW_EX (req
,
58 CORBA::SystemException::_tao_minor_code (
62 CORBA::COMPLETED_MAYBE
69 TAO_Dynamic_Adapter_Impl::context_is_nil (CORBA::Context_ptr ctx
)
75 TAO_Dynamic_Adapter_Impl::context_release (CORBA::Context_ptr ctx
)
79 ctx
->_decr_refcount ();
84 TAO_Dynamic_Adapter_Impl::request_is_nil (CORBA::Request_ptr req
)
90 TAO_Dynamic_Adapter_Impl::request_release (CORBA::Request_ptr req
)
94 req
->_decr_refcount ();
99 TAO_Dynamic_Adapter_Impl::server_request_is_nil (CORBA::ServerRequest_ptr req
)
105 TAO_Dynamic_Adapter_Impl::server_request_release (CORBA::ServerRequest_ptr req
)
109 req
->_decr_refcount ();
114 TAO_Dynamic_Adapter_Impl::create_exception_list (
115 CORBA::ExceptionList_ptr
&list
)
117 ACE_NEW_THROW_EX (list
,
118 CORBA::ExceptionList
,
120 CORBA::SystemException::_tao_minor_code (
129 TAO_Dynamic_Adapter_Impl::Initializer ()
131 TAO_ORB_Core::dynamic_adapter_name ("Concrete_Dynamic_Adapter");
132 return ACE_Service_Config::process_directive (ace_svc_desc_TAO_Dynamic_Adapter_Impl
);
135 TAO_END_VERSIONED_NAMESPACE_DECL
137 ACE_STATIC_SVC_DEFINE (
138 TAO_Dynamic_Adapter_Impl
,
139 ACE_TEXT ("Concrete_Dynamic_Adapter"),
141 &ACE_SVC_NAME (TAO_Dynamic_Adapter_Impl
),
142 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
146 ACE_FACTORY_DEFINE (TAO_DynamicInterface
, TAO_Dynamic_Adapter_Impl
)