Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Service_Callbacks.cpp
blobbf71128e2ae5ced4521d6300abc462dfb3e965d6
1 #include "tao/Service_Callbacks.h"
2 #include "tao/ORB_Constants.h"
3 #include "tao/SystemException.h"
4 #include "tao/Invocation_Utils.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 TAO_Service_Callbacks::~TAO_Service_Callbacks ()
12 CORBA::Boolean
13 TAO_Service_Callbacks::select_profile (const TAO_MProfile & /*mprofile*/,
14 TAO_Profile *& /*pfile*/)
16 return false;
19 CORBA::Boolean
20 TAO_Service_Callbacks::object_is_nil (CORBA::Object_ptr /* obj */)
22 // We shouldn't be here at all. But in case if we are here,
23 // something is wrong. So, we send a true for a is_nil () call
24 return true;
27 TAO_Service_Callbacks::Profile_Equivalence
28 TAO_Service_Callbacks::is_profile_equivalent (const TAO_Profile *,
29 const TAO_Profile *)
31 return DONT_KNOW;
34 CORBA::ULong
35 TAO_Service_Callbacks::hash_ft (TAO_Profile *,
36 CORBA::ULong )
38 return 0;
41 CORBA::Boolean
42 TAO_Service_Callbacks::is_permanent_forward_condition (const CORBA::Object_ptr,
43 const TAO_Service_Context &) const
45 return false;
48 TAO::Invocation_Status
49 TAO_Service_Callbacks::raise_comm_failure (
50 IOP::ServiceContextList &,
51 TAO_Profile * /*profile*/)
53 throw ::CORBA::COMM_FAILURE (
54 CORBA::SystemException::_tao_minor_code (
55 TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
56 0),
57 CORBA::COMPLETED_MAYBE);
60 TAO::Invocation_Status
61 TAO_Service_Callbacks::raise_transient_failure (
62 IOP::ServiceContextList &,
63 TAO_Profile * /*profile*/ )
65 throw ::CORBA::TRANSIENT (
66 CORBA::SystemException::_tao_minor_code (
67 TAO_INVOCATION_RECV_REQUEST_MINOR_CODE,
68 0),
69 CORBA::COMPLETED_MAYBE);
72 TAO_END_VERSIONED_NAMESPACE_DECL