r2corba 1.5.1-universal-java → 1.6.1-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +5 -5
- data/README.rdoc +62 -0
- data/THANKS +4 -4
- data/lib/corba/cbase/IORMap.rb +0 -1
- data/lib/corba/cbase/ORB.rb +26 -24
- data/lib/corba/cbase/Request.rb +4 -5
- data/lib/corba/cbase/Streams.rb +2 -3
- data/lib/corba/cbase/Stub.rb +0 -1
- data/lib/corba/cbase/Typecode.rb +6 -7
- data/lib/corba/cbase/Values.rb +4 -3
- data/lib/corba/cbase/exception.rb +6 -5
- data/lib/corba/cbase/poa.rb +1 -2
- data/lib/corba/cbase/policies.rb +3 -4
- data/lib/corba/cbase/post_require.rb +1 -2
- data/lib/corba/cbase/require.rb +10 -2
- data/lib/corba/cmds/base.rb +1 -2
- data/lib/corba/cmds/test.rb +0 -1
- data/lib/corba/common/Any.rb +3 -3
- data/lib/corba/common/IDL.rb +6 -10
- data/lib/corba/common/ORB.rb +22 -23
- data/lib/corba/common/Object.rb +18 -15
- data/lib/corba/common/Request.rb +1 -2
- data/lib/corba/common/Servant.rb +4 -5
- data/lib/corba/common/Struct.rb +1 -2
- data/lib/corba/common/Stub.rb +6 -7
- data/lib/corba/common/Typecode.rb +91 -65
- data/lib/corba/common/Union.rb +6 -2
- data/lib/corba/common/Values.rb +2 -2
- data/lib/corba/common/const.rb +2 -3
- data/lib/corba/common/exception.rb +2 -2
- data/lib/corba/common/require.rb +8 -1
- data/lib/corba/common/version.rb +3 -4
- data/lib/corba/idl/BiDirPolicyC.rb +2 -3
- data/lib/corba/idl/CosNamingC.rb +4 -5
- data/lib/corba/idl/CosNamingS.rb +2 -3
- data/lib/corba/idl/IDL.rb +1 -2
- data/lib/corba/idl/IORTable.pidl +0 -1
- data/lib/corba/idl/MessagingC.rb +2 -3
- data/lib/corba/idl/POAC.rb +10 -11
- data/lib/corba/idl/TAO_Ext.pidl +0 -1
- data/lib/corba/idl/r2c_orb.rb +5 -6
- data/lib/corba/idl/require.rb +0 -1
- data/lib/corba/jbase/Any.rb +29 -28
- data/lib/corba/jbase/IORMap.rb +1 -2
- data/lib/corba/jbase/ORB.rb +5 -6
- data/lib/corba/jbase/Object.rb +13 -14
- data/lib/corba/jbase/Request.rb +9 -10
- data/lib/corba/jbase/Servant.rb +11 -12
- data/lib/corba/jbase/ServerRequest.rb +8 -9
- data/lib/corba/jbase/Streams.rb +68 -5
- data/lib/corba/jbase/Stub.rb +0 -1
- data/lib/corba/jbase/Typecode.rb +17 -17
- data/lib/corba/jbase/Values.rb +2 -1
- data/lib/corba/jbase/exception.rb +2 -2
- data/lib/corba/jbase/poa.rb +21 -22
- data/lib/corba/jbase/policies.rb +33 -34
- data/lib/corba/jbase/post_require.rb +0 -1
- data/lib/corba/jbase/require.rb +5 -2
- data/lib/corba/naming.rb +0 -1
- data/lib/corba/naming_service.rb +0 -1
- data/lib/corba/poa.rb +1 -2
- data/lib/corba/policies.rb +1 -2
- data/lib/corba/require.rb +2 -3
- data/lib/corba/svcs/ins/cos_naming.rb +74 -68
- data/lib/corba/svcs/ins/ins.rb +58 -59
- data/lib/corba/svcs/ins/naming_service.rb +9 -10
- data/lib/corba.rb +1 -2
- data/lib/ridlbe/ruby/config.rb +78 -74
- data/lib/ridlbe/ruby/orb.pidlc +0 -0
- data/lib/ridlbe/ruby/require.rb +0 -1
- data/lib/ridlbe/ruby/walker.rb +311 -288
- data/mkrf_conf_bingem.rb +4 -6
- data/rakelib/bin.rake +2 -3
- data/rakelib/bin.rb +4 -5
- data/rakelib/build.rake +22 -22
- data/rakelib/config.rake +2 -3
- data/rakelib/config.rb +32 -34
- data/rakelib/gem.rake +53 -38
- data/rakelib/gem.rb +9 -10
- data/rakelib/package.rake +2 -3
- data/rakelib/test.rake +0 -1
- data/test/BiDirectional/Test.idl +0 -1
- data/test/BiDirectional/client.rb +18 -19
- data/test/BiDirectional/run_test.rb +11 -12
- data/test/BiDirectional/server.rb +21 -23
- data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +17 -18
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +13 -14
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +19 -20
- data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Corbaname/client.rb +15 -16
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +13 -14
- data/test/CORBA_Services/Naming/Corbaname/server.rb +27 -28
- data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Simple/client.rb +16 -17
- data/test/CORBA_Services/Naming/Simple/run_test.rb +13 -14
- data/test/CORBA_Services/Naming/Simple/server.rb +19 -20
- data/test/Collocation/Diamond.idl +0 -1
- data/test/Collocation/run_test.rb +10 -11
- data/test/Collocation/test.rb +27 -21
- data/test/Connect_Timeout/Test.idl +0 -1
- data/test/Connect_Timeout/client.rb +16 -18
- data/test/Connect_Timeout/run_test.rb +10 -11
- data/test/DII/Test.idl +0 -1
- data/test/DII/client.rb +30 -31
- data/test/DII/run_test.rb +11 -12
- data/test/DII/server.rb +16 -17
- data/test/DSI/Test.idl +0 -1
- data/test/DSI/client.rb +16 -17
- data/test/DSI/run_test.rb +11 -12
- data/test/DSI/server.rb +17 -18
- data/test/Exceptions/Test.idl +0 -1
- data/test/Exceptions/client.rb +22 -23
- data/test/Exceptions/run_test.rb +11 -12
- data/test/Exceptions/server.rb +16 -17
- data/test/Hello/Test.idl +0 -1
- data/test/Hello/client.rb +16 -17
- data/test/Hello/run_test.rb +11 -12
- data/test/Hello/server.rb +17 -18
- data/test/IDL_Test/Test.idl +4 -1
- data/test/IDL_Test/client.rb +24 -23
- data/test/IDL_Test/run_test.rb +11 -12
- data/test/IDL_Test/server.rb +23 -19
- data/test/IORMap/Test.idl +0 -1
- data/test/IORMap/client.rb +14 -15
- data/test/IORMap/run_test.rb +11 -12
- data/test/IORMap/server.rb +23 -24
- data/test/IORTable/Test.idl +0 -1
- data/test/IORTable/client.rb +14 -15
- data/test/IORTable/run_test.rb +11 -12
- data/test/IORTable/server.rb +23 -24
- data/test/Implicit_Conversion/Test.idl +0 -1
- data/test/Implicit_Conversion/client.rb +20 -18
- data/test/Implicit_Conversion/run_test.rb +11 -12
- data/test/Implicit_Conversion/server.rb +16 -17
- data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
- data/test/Multi_Threading/Multiple_ORB/client.rb +14 -15
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +12 -13
- data/test/Multi_Threading/Multiple_ORB/server.rb +17 -18
- data/test/Multi_Threading/Simple/Test.idl +0 -1
- data/test/Multi_Threading/Simple/client.rb +17 -18
- data/test/Multi_Threading/Simple/run_test.rb +11 -12
- data/test/Multi_Threading/Simple/server.rb +17 -18
- data/test/Multi_Threading/Threads/Test.idl +0 -4
- data/test/Multi_Threading/Threads/client.rb +23 -26
- data/test/Multi_Threading/Threads/run_test.rb +11 -12
- data/test/Multi_Threading/Threads/server.rb +19 -22
- data/test/Multi_Threading/Threads/watchdog.rb +16 -16
- data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
- data/test/Multiple_Servant_Interfaces/client.rb +14 -15
- data/test/Multiple_Servant_Interfaces/run_test.rb +11 -12
- data/test/Multiple_Servant_Interfaces/server.rb +18 -19
- data/test/Nil/Test.idl +0 -1
- data/test/Nil/run_test.rb +10 -11
- data/test/Nil/test.rb +22 -20
- data/test/OBV/AbstractInterface/client.rb +14 -15
- data/test/OBV/AbstractInterface/run_test.rb +11 -12
- data/test/OBV/AbstractInterface/server.rb +20 -20
- data/test/OBV/AbstractInterface/test.idl +0 -1
- data/test/OBV/Custom/OBV_impl.rb +2 -1
- data/test/OBV/Custom/client.rb +14 -15
- data/test/OBV/Custom/run_test.rb +11 -12
- data/test/OBV/Custom/server.rb +16 -17
- data/test/OBV/Simple/OBV_impl.rb +1 -1
- data/test/OBV/Simple/client.rb +14 -15
- data/test/OBV/Simple/run_test.rb +11 -12
- data/test/OBV/Simple/server.rb +16 -17
- data/test/OBV/Simple_Event/Event_impl.rb +1 -1
- data/test/OBV/Simple_Event/client.rb +14 -15
- data/test/OBV/Simple_Event/run_test.rb +11 -12
- data/test/OBV/Simple_Event/server.rb +16 -17
- data/test/OBV/Supports/client.rb +19 -20
- data/test/OBV/Supports/run_test.rb +11 -12
- data/test/OBV/Supports/server.rb +15 -16
- data/test/OBV/Supports/supports.idl +0 -1
- data/test/OBV/Supports/supports_impl.rb +3 -1
- data/test/OBV/Tree/client.rb +14 -15
- data/test/OBV/Tree/run_test.rb +11 -12
- data/test/OBV/Tree/server.rb +19 -20
- data/test/OBV/Tree/test.idl +0 -1
- data/test/OBV/Truncatable/Extra.idl +0 -1
- data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
- data/test/OBV/Truncatable/client.rb +57 -58
- data/test/OBV/Truncatable/run_test.rb +11 -12
- data/test/OBV/Truncatable/server.rb +15 -16
- data/test/OBV/ValueBox/client.rb +154 -154
- data/test/OBV/ValueBox/run_test.rb +11 -12
- data/test/OBV/ValueBox/server.rb +42 -42
- data/test/Object/Test.idl +0 -1
- data/test/Object/client.rb +15 -16
- data/test/Object/run_test.rb +11 -12
- data/test/Object/server.rb +19 -20
- data/test/POA/run_test.rb +10 -11
- data/test/POA/test.rb +17 -18
- data/test/Param_Test/client.rb +53 -54
- data/test/Param_Test/run_test.rb +11 -12
- data/test/Param_Test/server.rb +60 -61
- data/test/Performance/Simple/Test.idl +0 -1
- data/test/Performance/Simple/client.rb +16 -17
- data/test/Performance/Simple/run_test.rb +11 -12
- data/test/Performance/Simple/server.rb +16 -17
- data/test/Policies/Test.idl +0 -1
- data/test/Policies/run_test.rb +10 -11
- data/test/Policies/test.rb +23 -25
- data/test/Timeout/client.rb +21 -22
- data/test/Timeout/run_test.rb +11 -12
- data/test/Timeout/server.rb +19 -20
- data/test/Timeout/test.idl +0 -1
- data/test/lib/assert.rb +0 -2
- data/test/lib/test.rb +29 -25
- data/test/test_runner.rb +22 -24
- metadata +27 -64
- data/README +0 -62
- data/jacorb/lib/antlr-2.7.2.jar +0 -0
- data/jacorb/lib/jacorb-3.5.jar +0 -0
- data/jacorb/lib/jacorb-omgapi-3.5.jar +0 -0
- data/jacorb/lib/jacorb-services-3.5.jar +0 -0
- data/jacorb/lib/slf4j-api-1.7.6.jar +0 -0
- data/jacorb/lib/slf4j-jdk14-1.7.6.jar +0 -0
- data/test/BiDirectional/server.ior +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
- data/test/DII/server.ior +0 -1
- data/test/DSI/server.ior +0 -1
- data/test/Exceptions/server.ior +0 -1
- data/test/Hello/gateway.ior +0 -1
- data/test/IDL_Test/server.ior +0 -1
- data/test/IORMap/server.ior +0 -1
- data/test/IORTable/server.ior +0 -0
- data/test/Implicit_Conversion/server.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
- data/test/Multi_Threading/Simple/server.ior +0 -1
- data/test/Multi_Threading/Threads/server.ior +0 -1
- data/test/Multi_Threading/Threads/watchdog.ior +0 -1
- data/test/Multiple_Servant_Interfaces/server.ior +0 -1
- data/test/OBV/AbstractInterface/server.ior +0 -1
- data/test/OBV/Custom/server.ior +0 -1
- data/test/OBV/Simple/server.ior +0 -1
- data/test/OBV/Simple_Event/server.ior +0 -1
- data/test/OBV/Supports/server.ior +0 -1
- data/test/OBV/Tree/server.ior +0 -1
- data/test/OBV/Truncatable/server.ior +0 -1
- data/test/OBV/ValueBox/server.ior +0 -1
- data/test/Object/server.ior +0 -1
- data/test/Param_Test/server.ior +0 -1
- data/test/Performance/Simple/server.ior +0 -1
- data/test/Timeout/server.ior +0 -1
- data/test/test.log +0 -20
- data/test/test2.log +0 -5000
data/lib/corba/common/require.rb
CHANGED
@@ -8,9 +8,16 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
13
|
+
module R2CORBA
|
14
|
+
|
15
|
+
# from Ruby 2.4 Fixnum and Bignum are deprecated
|
16
|
+
FIXNUM_KLASS = (1.class == ::Integer ? ::Integer : ::Fixnum)
|
17
|
+
BIGNUM_KLASS = (1.class == ::Integer ? ::Integer : ::Bignum)
|
18
|
+
|
19
|
+
end
|
20
|
+
|
14
21
|
[ 'version',
|
15
22
|
'const',
|
16
23
|
'IDL',
|
data/lib/corba/common/version.rb
CHANGED
@@ -8,14 +8,13 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
module R2CORBA
|
15
14
|
|
16
|
-
R2CORBA_MAJOR = 1
|
17
|
-
R2CORBA_MINOR =
|
18
|
-
R2CORBA_RELEASE =
|
15
|
+
R2CORBA_MAJOR = 1
|
16
|
+
R2CORBA_MINOR = 6
|
17
|
+
R2CORBA_RELEASE = 1
|
19
18
|
|
20
19
|
R2CORBA_VERSION = "#{R2CORBA_MAJOR}.#{R2CORBA_MINOR}.#{R2CORBA_RELEASE}".freeze
|
21
20
|
|
@@ -2,10 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
4
|
# R2CORBA has been developed by:
|
5
|
-
# Remedy IT
|
6
|
-
# Nijkerk, GLD
|
5
|
+
# Remedy IT Expertise BV
|
7
6
|
# The Netherlands
|
8
|
-
#
|
7
|
+
# https://www.remedy.nl
|
9
8
|
#
|
10
9
|
|
11
10
|
module R2CORBA
|
data/lib/corba/idl/CosNamingC.rb
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
4
|
# R2CORBA has been developed by:
|
5
|
-
# Remedy IT
|
6
|
-
# Nijkerk, GLD
|
5
|
+
# Remedy IT Expertise BV
|
7
6
|
# The Netherlands
|
8
|
-
#
|
7
|
+
# https://www.remedy.nl
|
9
8
|
#
|
10
9
|
require 'corba'
|
11
10
|
|
@@ -39,7 +38,7 @@ module CosNaming
|
|
39
38
|
CORBA::TypeCode::Sequence.new(CosNaming::NameComponent._tc), self)
|
40
39
|
end
|
41
40
|
end # typedef Name
|
42
|
-
class BindingType < ::
|
41
|
+
class BindingType < ::R2CORBA::FIXNUM_KLASS
|
43
42
|
def BindingType._tc
|
44
43
|
@@tc_BindingType ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CosNaming/BindingType:1.0'.freeze, 'BindingType', [
|
45
44
|
'Nobject',
|
@@ -96,7 +95,7 @@ module CosNaming
|
|
96
95
|
CosNaming::NamingContext::Id
|
97
96
|
end
|
98
97
|
|
99
|
-
class NotFoundReason < ::
|
98
|
+
class NotFoundReason < ::R2CORBA::FIXNUM_KLASS
|
100
99
|
def NotFoundReason._tc
|
101
100
|
@@tc_NotFoundReason ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0'.freeze, 'NotFoundReason', [
|
102
101
|
'Missing_node',
|
data/lib/corba/idl/CosNamingS.rb
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
4
|
# R2CORBA has been developed by:
|
5
|
-
# Remedy IT
|
6
|
-
# Nijkerk, GLD
|
5
|
+
# Remedy IT Expertise BV
|
7
6
|
# The Netherlands
|
8
|
-
#
|
7
|
+
# https://www.remedy.nl
|
9
8
|
#
|
10
9
|
require 'corba/poa.rb'
|
11
10
|
|
data/lib/corba/idl/IDL.rb
CHANGED
@@ -8,12 +8,11 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
module R2CORBA
|
14
13
|
|
15
14
|
module CORBA
|
16
|
-
def CORBA.implement(idlfile, params={}, genbits = IDL::CLIENT_STUB, &block)
|
15
|
+
def CORBA.implement(idlfile, params = {}, genbits = IDL::CLIENT_STUB, &block)
|
17
16
|
IDL.implement(idlfile, params, genbits, &block)
|
18
17
|
end
|
19
18
|
end
|
data/lib/corba/idl/IORTable.pidl
CHANGED
data/lib/corba/idl/MessagingC.rb
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
4
|
# R2CORBA has been developed by:
|
5
|
-
# Remedy IT
|
6
|
-
# Nijkerk, GLD
|
5
|
+
# Remedy IT Expertise BV
|
7
6
|
# The Netherlands
|
8
|
-
#
|
7
|
+
# https://www.remedy.nl
|
9
8
|
#
|
10
9
|
|
11
10
|
module R2CORBA
|
data/lib/corba/idl/POAC.rb
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
4
|
# R2CORBA has been developed by:
|
5
|
-
# Remedy IT
|
6
|
-
# Nijkerk, GLD
|
5
|
+
# Remedy IT Expertise BV
|
7
6
|
# The Netherlands
|
8
|
-
#
|
7
|
+
# https://www.remedy.nl
|
9
8
|
#
|
10
9
|
|
11
10
|
module R2CORBA
|
@@ -46,7 +45,7 @@ module R2CORBA
|
|
46
45
|
IMPLICIT_ACTIVATION_POLICY_ID = 20
|
47
46
|
SERVANT_RETENTION_POLICY_ID = 21
|
48
47
|
REQUEST_PROCESSING_POLICY_ID = 22
|
49
|
-
class ThreadPolicyValue < ::
|
48
|
+
class ThreadPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
50
49
|
def ThreadPolicyValue._tc
|
51
50
|
@@tc_ThreadPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/ThreadPolicyValue:1.0'.freeze, 'ThreadPolicyValue', [
|
52
51
|
'ORB_CTRL_MODEL',
|
@@ -91,7 +90,7 @@ module R2CORBA
|
|
91
90
|
end #of attribute value getter
|
92
91
|
end #of interface ThreadPolicy
|
93
92
|
|
94
|
-
class LifespanPolicyValue < ::
|
93
|
+
class LifespanPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
95
94
|
def LifespanPolicyValue._tc
|
96
95
|
@@tc_LifespanPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/LifespanPolicyValue:1.0'.freeze, 'LifespanPolicyValue', [
|
97
96
|
'TRANSIENT',
|
@@ -134,7 +133,7 @@ module R2CORBA
|
|
134
133
|
end #of attribute value getter
|
135
134
|
end #of interface LifespanPolicy
|
136
135
|
|
137
|
-
class IdUniquenessPolicyValue < ::
|
136
|
+
class IdUniquenessPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
138
137
|
def IdUniquenessPolicyValue._tc
|
139
138
|
@@tc_IdUniquenessPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/IdUniquenessPolicyValue:1.0'.freeze, 'IdUniquenessPolicyValue', [
|
140
139
|
'UNIQUE_ID',
|
@@ -177,7 +176,7 @@ module R2CORBA
|
|
177
176
|
end #of attribute value getter
|
178
177
|
end #of interface IdUniquenessPolicy
|
179
178
|
|
180
|
-
class IdAssignmentPolicyValue < ::
|
179
|
+
class IdAssignmentPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
181
180
|
def IdAssignmentPolicyValue._tc
|
182
181
|
@@tc_IdAssignmentPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/IdAssignmentPolicyValue:1.0'.freeze, 'IdAssignmentPolicyValue', [
|
183
182
|
'USER_ID',
|
@@ -220,7 +219,7 @@ module R2CORBA
|
|
220
219
|
end #of attribute value getter
|
221
220
|
end #of interface IdAssignmentPolicy
|
222
221
|
|
223
|
-
class ImplicitActivationPolicyValue < ::
|
222
|
+
class ImplicitActivationPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
224
223
|
def ImplicitActivationPolicyValue._tc
|
225
224
|
@@tc_ImplicitActivationPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/ImplicitActivationPolicyValue:1.0'.freeze, 'ImplicitActivationPolicyValue', [
|
226
225
|
'IMPLICIT_ACTIVATION',
|
@@ -263,7 +262,7 @@ module R2CORBA
|
|
263
262
|
end #of attribute value getter
|
264
263
|
end #of interface ImplicitActivationPolicy
|
265
264
|
|
266
|
-
class ServantRetentionPolicyValue < ::
|
265
|
+
class ServantRetentionPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
267
266
|
def ServantRetentionPolicyValue._tc
|
268
267
|
@@tc_ServantRetentionPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/ServantRetentionPolicyValue:1.0'.freeze, 'ServantRetentionPolicyValue', [
|
269
268
|
'RETAIN',
|
@@ -306,7 +305,7 @@ module R2CORBA
|
|
306
305
|
end #of attribute value getter
|
307
306
|
end #of interface ServantRetentionPolicy
|
308
307
|
|
309
|
-
class RequestProcessingPolicyValue < ::
|
308
|
+
class RequestProcessingPolicyValue < ::R2CORBA::FIXNUM_KLASS
|
310
309
|
def RequestProcessingPolicyValue._tc
|
311
310
|
@@tc_RequestProcessingPolicyValue ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/RequestProcessingPolicyValue:1.0'.freeze, 'RequestProcessingPolicyValue', [
|
312
311
|
'USE_ACTIVE_OBJECT_MAP_ONLY',
|
@@ -381,7 +380,7 @@ module R2CORBA
|
|
381
380
|
end
|
382
381
|
self._tc # register typecode
|
383
382
|
end #of exception AdapterInactive
|
384
|
-
class State < ::
|
383
|
+
class State < ::R2CORBA::FIXNUM_KLASS
|
385
384
|
def State._tc
|
386
385
|
@@tc_State ||= CORBA::TypeCode::Enum.new('IDL:omg.org/PortableServer/POAManager/State:1.0'.freeze, 'State', [
|
387
386
|
'HOLDING',
|
data/lib/corba/idl/TAO_Ext.pidl
CHANGED
data/lib/corba/idl/r2c_orb.rb
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
#
|
3
3
|
# **** Code generated by the R2CORBA IDL Compiler ****
|
4
4
|
# R2CORBA has been developed by:
|
5
|
-
# Remedy IT
|
6
|
-
# Nijkerk, GLD
|
5
|
+
# Remedy IT Expertise BV
|
7
6
|
# The Netherlands
|
8
|
-
#
|
7
|
+
# https://www.remedy.nl
|
9
8
|
#
|
10
9
|
|
11
10
|
module R2CORBA
|
@@ -278,7 +277,7 @@ module R2CORBA
|
|
278
277
|
end
|
279
278
|
|
280
279
|
end #of exception PolicyError
|
281
|
-
class SetOverrideType < ::
|
280
|
+
class SetOverrideType < ::R2CORBA::FIXNUM_KLASS
|
282
281
|
def SetOverrideType._tc
|
283
282
|
@@tc_SetOverrideType ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CORBA/SetOverrideType:1.0'.freeze, 'SetOverrideType', [
|
284
283
|
'SET_OVERRIDE',
|
@@ -449,7 +448,7 @@ module R2CORBA
|
|
449
448
|
def RepositoryId._tc; @@tc_RepositoryId ||= CORBA::TypeCode::Alias.new('IDL:omg.org/CORBA/RepositoryId:1.0', 'RepositoryId', CORBA::_tc_string, self); end
|
450
449
|
end # typedef RepositoryId
|
451
450
|
class TypeCode; end ## interface forward
|
452
|
-
class TCKind < ::
|
451
|
+
class TCKind < ::R2CORBA::FIXNUM_KLASS
|
453
452
|
def TCKind._tc
|
454
453
|
@@tc_TCKind ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CORBA/TCKind:1.0'.freeze, 'TCKind', [
|
455
454
|
'Tk_null',
|
@@ -551,7 +550,7 @@ module R2CORBA
|
|
551
550
|
|
552
551
|
class ExceptionList; end ## 'native' type
|
553
552
|
class NamedValue; end ## 'native' type
|
554
|
-
class Exception_type < ::
|
553
|
+
class Exception_type < ::R2CORBA::FIXNUM_KLASS
|
555
554
|
def Exception_type._tc
|
556
555
|
@@tc_Exception_type ||= CORBA::TypeCode::Enum.new('IDL:omg.org/CORBA/exception_type:1.0'.freeze, 'Exception_type', [
|
557
556
|
'NO_EXCEPTION',
|
data/lib/corba/idl/require.rb
CHANGED
data/lib/corba/jbase/Any.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
module R2CORBA
|
14
13
|
module CORBA
|
@@ -16,21 +15,23 @@ module R2CORBA
|
|
16
15
|
module Dynamic
|
17
16
|
include_package 'org.omg.DynamicAny'
|
18
17
|
end
|
18
|
+
|
19
19
|
module Reflect
|
20
20
|
java_import java.lang.reflect.Array
|
21
21
|
end
|
22
22
|
end
|
23
|
+
|
23
24
|
class Any
|
24
|
-
def to_java(jorb=nil,jany=nil)
|
25
|
+
def to_java(jorb = nil, jany = nil)
|
25
26
|
rtc = self._tc
|
26
27
|
rval = self._value.nil? ? self._value : rtc.validate(self._value)
|
27
28
|
restc = rtc.resolved_tc
|
28
29
|
begin
|
29
30
|
if [TK_VALUE, TK_VALUE_BOX, TK_ABSTRACT_INTERFACE].include?(restc.kind) ||
|
30
|
-
(!rval.nil? && [TK_NULL,TK_ANY,TK_BOOLEAN,TK_SHORT,TK_LONG,TK_USHORT,
|
31
|
-
TK_WCHAR,TK_ULONG,TK_LONGLONG,TK_ULONGLONG,TK_OCTET,
|
32
|
-
TK_FLOAT,TK_DOUBLE,TK_LONGDOUBLE,TK_CHAR,TK_STRING,TK_WSTRING,
|
33
|
-
TK_VALUE, TK_VALUE_BOX,TK_TYPECODE,TK_OBJREF,TK_PRINCIPAL].include?(restc.kind))
|
31
|
+
(!rval.nil? && [TK_NULL, TK_ANY, TK_BOOLEAN, TK_SHORT, TK_LONG, TK_USHORT,
|
32
|
+
TK_WCHAR, TK_ULONG, TK_LONGLONG, TK_ULONGLONG, TK_OCTET,
|
33
|
+
TK_FLOAT, TK_DOUBLE, TK_LONGDOUBLE, TK_CHAR, TK_STRING, TK_WSTRING,
|
34
|
+
TK_VALUE, TK_VALUE_BOX, TK_TYPECODE, TK_OBJREF, TK_PRINCIPAL].include?(restc.kind))
|
34
35
|
jorb ||= CORBA::ORB._orb
|
35
36
|
jany ||= jorb.create_any()
|
36
37
|
case restc.kind
|
@@ -61,7 +62,7 @@ module R2CORBA
|
|
61
62
|
when TK_DOUBLE
|
62
63
|
jany.insert_double(rval)
|
63
64
|
when TK_LONGDOUBLE
|
64
|
-
raise CORBA::NO_IMPLEMENT.new('LongDouble not supported',0,CORBA::COMPLETED_NO)
|
65
|
+
raise CORBA::NO_IMPLEMENT.new('LongDouble not supported', 0, CORBA::COMPLETED_NO)
|
65
66
|
when TK_FIXED
|
66
67
|
jany.insert_fixed(java.math.BigDecimal.new(rval.to_s))
|
67
68
|
when TK_CHAR
|
@@ -69,7 +70,7 @@ module R2CORBA
|
|
69
70
|
when TK_STRING
|
70
71
|
jany.insert_string(rval)
|
71
72
|
when TK_WSTRING
|
72
|
-
jany.insert_wstring(rval.inject('') {|s,b| s << b.chr})
|
73
|
+
jany.insert_wstring(rval.inject('') {|s, b| s << b.chr})
|
73
74
|
when TK_VALUE
|
74
75
|
jany.insert_Value(rval, rtc.tc_)
|
75
76
|
when TK_VALUE_BOX
|
@@ -95,15 +96,15 @@ module R2CORBA
|
|
95
96
|
jany.insert_Value(rval, rtc.tc_)
|
96
97
|
end
|
97
98
|
when TK_PRINCIPAL
|
98
|
-
raise CORBA::NO_IMPLEMENT.new('Principal not supported',0,CORBA::COMPLETED_NO)
|
99
|
+
raise CORBA::NO_IMPLEMENT.new('Principal not supported', 0, CORBA::COMPLETED_NO)
|
99
100
|
## TODO: TK_NATIVE
|
100
101
|
else
|
101
|
-
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]",0,CORBA::COMPLETED_NO)
|
102
|
+
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]", 0, CORBA::COMPLETED_NO)
|
102
103
|
end
|
103
104
|
return jany
|
104
105
|
else
|
105
106
|
dynFactory = CORBA::Native::Dynamic::DynAnyFactoryHelper.narrow(
|
106
|
-
(jorb || CORBA::ORB._orb).resolve_initial_references(
|
107
|
+
(jorb || CORBA::ORB._orb).resolve_initial_references('DynAnyFactory'))
|
107
108
|
jdynany = dynFactory.create_dyn_any_from_type_code(rtc.tc_)
|
108
109
|
begin
|
109
110
|
unless rval.nil?
|
@@ -113,15 +114,15 @@ module R2CORBA
|
|
113
114
|
jdynany.set_as_ulong(rval)
|
114
115
|
when TK_ARRAY
|
115
116
|
jelems = CORBA::Native::Reflect::Array.newInstance(CORBA::Native::Any.java_class, rval.size)
|
116
|
-
rval.each_with_index {|e,i| jelems[i] = Any.to_any(e, restc.content_type).to_java(jorb) }
|
117
|
+
rval.each_with_index {|e, i| jelems[i] = Any.to_any(e, restc.content_type).to_java(jorb) }
|
117
118
|
jdynany.set_elements(jelems)
|
118
119
|
when TK_SEQUENCE
|
119
120
|
jelems = CORBA::Native::Reflect::Array.newInstance(CORBA::Native::Any.java_class, rval.size)
|
120
|
-
rval.each_with_index {|e,i| jelems[i] = Any.to_any(e, restc.content_type).to_java(jorb) }
|
121
|
+
rval.each_with_index {|e, i| jelems[i] = Any.to_any(e, restc.content_type).to_java(jorb) }
|
121
122
|
jdynany.set_elements(jelems)
|
122
123
|
when TK_STRUCT, TK_EXCEPT
|
123
124
|
jmembers = CORBA::Native::Reflect::Array.newInstance(CORBA::Native::Dynamic::NameValuePair.java_class, restc.members.size)
|
124
|
-
rtc.members.each_with_index {|(mn, mt),i| jmembers[i] = CORBA::Native::Dynamic::NameValuePair.new(mn, Any.to_any(rval.__send__(mn.intern), mt).to_java(jorb)) }
|
125
|
+
rtc.members.each_with_index {|(mn, mt), i| jmembers[i] = CORBA::Native::Dynamic::NameValuePair.new(mn, Any.to_any(rval.__send__(mn.intern), mt).to_java(jorb)) }
|
125
126
|
jdynany.set_members(jmembers)
|
126
127
|
when TK_UNION
|
127
128
|
if rval._is_at_default?
|
@@ -135,7 +136,7 @@ module R2CORBA
|
|
135
136
|
jdynany.member.from_any(Any.to_any(rval._value, rval._value_tc).to_java(jorb))
|
136
137
|
end
|
137
138
|
else
|
138
|
-
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]",0,CORBA::COMPLETED_NO)
|
139
|
+
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]", 0, CORBA::COMPLETED_NO)
|
139
140
|
end
|
140
141
|
end
|
141
142
|
if jany.nil?
|
@@ -153,15 +154,15 @@ module R2CORBA
|
|
153
154
|
end
|
154
155
|
end # to_java
|
155
156
|
|
156
|
-
def Any.from_java(jany, jorb=nil, rtc=nil)
|
157
|
+
def Any.from_java(jany, jorb = nil, rtc = nil)
|
157
158
|
rtc ||= CORBA::TypeCode.from_native(jany.type)
|
158
159
|
rval = nil
|
159
160
|
begin
|
160
|
-
if [TK_NULL,TK_VOID,TK_ANY,TK_BOOLEAN,TK_SHORT,TK_LONG,TK_USHORT,
|
161
|
-
TK_WCHAR,TK_ULONG,TK_LONGLONG,TK_ULONGLONG,TK_OCTET,
|
162
|
-
TK_FLOAT,TK_DOUBLE,TK_LONGDOUBLE,TK_CHAR,TK_STRING,TK_WSTRING,
|
163
|
-
TK_VALUE, TK_VALUE_BOX,TK_TYPECODE,TK_OBJREF,
|
164
|
-
TK_ABSTRACT_INTERFACE,TK_PRINCIPAL].include?(rtc.resolved_tc.kind)
|
161
|
+
if [TK_NULL, TK_VOID, TK_ANY, TK_BOOLEAN, TK_SHORT, TK_LONG, TK_USHORT,
|
162
|
+
TK_WCHAR, TK_ULONG, TK_LONGLONG, TK_ULONGLONG, TK_OCTET,
|
163
|
+
TK_FLOAT, TK_DOUBLE, TK_LONGDOUBLE, TK_CHAR, TK_STRING, TK_WSTRING,
|
164
|
+
TK_VALUE, TK_VALUE_BOX, TK_TYPECODE, TK_OBJREF,
|
165
|
+
TK_ABSTRACT_INTERFACE, TK_PRINCIPAL].include?(rtc.resolved_tc.kind)
|
165
166
|
case rtc.resolved_tc.kind
|
166
167
|
when TK_NULL, TK_VOID
|
167
168
|
# leave as is
|
@@ -190,9 +191,9 @@ module R2CORBA
|
|
190
191
|
when TK_DOUBLE
|
191
192
|
rval = jany.extract_double()
|
192
193
|
when TK_LONGDOUBLE
|
193
|
-
raise CORBA::NO_IMPLEMENT.new('LongDouble not supported',0,CORBA::COMPLETED_NO)
|
194
|
+
raise CORBA::NO_IMPLEMENT.new('LongDouble not supported', 0, CORBA::COMPLETED_NO)
|
194
195
|
when TK_FIXED
|
195
|
-
rval = BigDecimal
|
196
|
+
rval = BigDecimal(jany.extract_fixed().toString())
|
196
197
|
when TK_CHAR
|
197
198
|
rval = jany.extract_char().chr
|
198
199
|
when TK_STRING
|
@@ -218,14 +219,14 @@ module R2CORBA
|
|
218
219
|
jobj
|
219
220
|
end
|
220
221
|
when TK_PRINCIPAL
|
221
|
-
raise CORBA::NO_IMPLEMENT.new('Principal not supported',0,CORBA::COMPLETED_NO)
|
222
|
+
raise CORBA::NO_IMPLEMENT.new('Principal not supported', 0, CORBA::COMPLETED_NO)
|
222
223
|
## TODO: TK_NATIVE
|
223
224
|
else
|
224
|
-
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]",0,CORBA::COMPLETED_NO)
|
225
|
+
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]", 0, CORBA::COMPLETED_NO)
|
225
226
|
end
|
226
227
|
else
|
227
228
|
dynFactory = CORBA::Native::Dynamic::DynAnyFactoryHelper.narrow(
|
228
|
-
(jorb || CORBA::ORB._orb).resolve_initial_references(
|
229
|
+
(jorb || CORBA::ORB._orb).resolve_initial_references('DynAnyFactory'))
|
229
230
|
jdynany = dynFactory.create_dyn_any(jany)
|
230
231
|
begin
|
231
232
|
restc = rtc.resolved_tc
|
@@ -240,7 +241,7 @@ module R2CORBA
|
|
240
241
|
jdynany.get_elements().each {|e| rval << Any.from_java(e, jorb, restc.content_type) }
|
241
242
|
when TK_STRUCT, TK_EXCEPT
|
242
243
|
rval = rtc.get_type.new
|
243
|
-
jdynany.get_members().each_with_index {|nvp,i| rval.__send__("#{nvp.id}=".intern, Any.from_java(nvp.value, jorb, restc.member_type(i))) }
|
244
|
+
jdynany.get_members().each_with_index {|nvp, i| rval.__send__("#{nvp.id}=".intern, Any.from_java(nvp.value, jorb, restc.member_type(i))) }
|
244
245
|
when TK_UNION
|
245
246
|
rval = rtc.get_type.new
|
246
247
|
if jdynany.get_discriminator().type().kind().value() == CORBA::TK_OCTET
|
@@ -256,7 +257,7 @@ module R2CORBA
|
|
256
257
|
rval.instance_variable_set('@value', Any.from_java(jdynany.member.to_any, jorb, restc.member_type(minx)))
|
257
258
|
end
|
258
259
|
else
|
259
|
-
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]",0,CORBA::COMPLETED_NO)
|
260
|
+
raise CORBA::MARSHAL.new("unknown kind [#{rtc.kind}]", 0, CORBA::COMPLETED_NO)
|
260
261
|
end
|
261
262
|
ensure
|
262
263
|
jdynany.destroy
|
data/lib/corba/jbase/IORMap.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
module R2CORBA
|
@@ -33,4 +32,4 @@ module R2CORBA
|
|
33
32
|
end
|
34
33
|
end
|
35
34
|
end
|
36
|
-
end
|
35
|
+
end
|
data/lib/corba/jbase/ORB.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
module R2CORBA
|
@@ -39,12 +38,12 @@ module R2CORBA
|
|
39
38
|
prop = nil
|
40
39
|
a1, a2, a3 = args
|
41
40
|
if Array === a1
|
42
|
-
raise ArgumentError, "Incorrect nr. of arguments; #{args.size}" if args.size>3
|
41
|
+
raise ArgumentError, "Incorrect nr. of arguments; #{args.size}" if args.size > 3
|
43
42
|
argv = a1
|
44
43
|
orb_id = (Hash === a2 ? nil : a2)
|
45
44
|
prop = (Hash === a2 ? a2 : a3)
|
46
45
|
elsif args.size == 1 || Hash === a2
|
47
|
-
raise ArgumentError, "Incorrect nr. of arguments; #{args.size}" if args.size>2
|
46
|
+
raise ArgumentError, "Incorrect nr. of arguments; #{args.size}" if args.size > 2
|
48
47
|
orb_id = a1
|
49
48
|
prop = a2
|
50
49
|
else
|
@@ -53,14 +52,14 @@ module R2CORBA
|
|
53
52
|
raise ArgumentError, "Invalid argument #{prop.class}; expected Hash" unless prop.nil? || Hash === prop
|
54
53
|
jprop = Java::JavaUtil::Properties.new
|
55
54
|
jprop.setProperty('ORBid', orb_id) if orb_id
|
56
|
-
prop.each { |k,v| jprop.setProperty(k.to_s, v.to_s) } if prop
|
55
|
+
prop.each { |k, v| jprop.setProperty(k.to_s, v.to_s) } if prop
|
57
56
|
@@cached_orb = CORBA::Native::ORB.init(argv.collect {|a| a.to_s }.to_java(:string), jprop)
|
58
57
|
end
|
59
58
|
@@wrapper_klass.new(n_orb)
|
60
59
|
end
|
61
60
|
|
62
|
-
#str ::String
|
63
|
-
#ret ::CORBA::Object
|
61
|
+
# str ::String
|
62
|
+
# ret ::CORBA::Object
|
64
63
|
def string_to_object(str)
|
65
64
|
begin
|
66
65
|
begin
|
data/lib/corba/jbase/Object.rb
CHANGED
@@ -8,18 +8,17 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
module R2CORBA
|
14
13
|
module CORBA
|
15
14
|
|
16
15
|
module Object
|
17
16
|
|
18
|
-
#ret InterfaceDef
|
17
|
+
# ret InterfaceDef
|
19
18
|
def _get_interface()
|
20
19
|
raise ::CORBA::NO_IMPLEMENT
|
21
|
-
#ifdef_obj = self.objref_._get_interface_def rescue CORBA::Exception.native2r($!)
|
22
|
-
#(ifdef_obj = CORBA::Native::InterfaceDefHelper.narrow(ifdef_obj) rescue CORBA::Exception.native2r($!)) unless ifdef_obj.nil?
|
20
|
+
# ifdef_obj = self.objref_._get_interface_def rescue CORBA::Exception.native2r($!)
|
21
|
+
# (ifdef_obj = CORBA::Native::InterfaceDefHelper.narrow(ifdef_obj) rescue CORBA::Exception.native2r($!)) unless ifdef_obj.nil?
|
23
22
|
end
|
24
23
|
|
25
24
|
# ::String logical_type_id
|
@@ -49,7 +48,7 @@ module R2CORBA
|
|
49
48
|
end
|
50
49
|
|
51
50
|
unless CORBA::Native::Portable::ObjectImpl.public_instance_methods.include?(:_get_component)
|
52
|
-
#ret ::CORBA::Object
|
51
|
+
# ret ::CORBA::Object
|
53
52
|
def _get_component()
|
54
53
|
raise CORBA::INV_OBJREF.new if self._is_nil?()
|
55
54
|
## ask the remote side
|
@@ -61,27 +60,27 @@ module R2CORBA
|
|
61
60
|
end
|
62
61
|
end
|
63
62
|
|
64
|
-
#def PolicyType policy_type
|
63
|
+
# def PolicyType policy_type
|
65
64
|
# ret Policy
|
66
65
|
def _get_policy(policy_type)
|
67
66
|
raise ::CORBA::NO_IMPLEMENT
|
68
67
|
end
|
69
68
|
|
70
|
-
#PolicyList policies
|
71
|
-
#SetOverrideType set_add
|
72
|
-
#ret ::CORBA::Object
|
73
|
-
def _set_policy_overrides(policies, set_add
|
69
|
+
# PolicyList policies
|
70
|
+
# SetOverrideType set_add
|
71
|
+
# ret ::CORBA::Object
|
72
|
+
def _set_policy_overrides(policies, set_add)
|
74
73
|
raise ::CORBA::NO_IMPLEMENT
|
75
74
|
end
|
76
75
|
|
77
|
-
#int[] types
|
78
|
-
#ret PolicyList
|
76
|
+
# int[] types
|
77
|
+
# ret PolicyList
|
79
78
|
def _get_policy_overrides(types)
|
80
79
|
raise ::CORBA::NO_IMPLEMENT
|
81
80
|
end
|
82
81
|
|
83
|
-
#PolicyList inconsistent_policies
|
84
|
-
#ret bool
|
82
|
+
# PolicyList inconsistent_policies
|
83
|
+
# ret bool
|
85
84
|
def _validate_connection(inconsistent_policies)
|
86
85
|
raise ::CORBA::NO_IMPLEMENT
|
87
86
|
end
|
data/lib/corba/jbase/Request.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
module R2CORBA
|
14
13
|
module CORBA
|
@@ -37,7 +36,7 @@ module R2CORBA
|
|
37
36
|
end
|
38
37
|
end
|
39
38
|
|
40
|
-
def add_in_arg(tc, val, nm='')
|
39
|
+
def add_in_arg(tc, val, nm = '')
|
41
40
|
begin
|
42
41
|
self.req_.arguments.add_value(nm, Any.to_any(val, tc).to_java(self.req_.target._orb), CORBA::ARG_IN)
|
43
42
|
rescue ::NativeException
|
@@ -46,7 +45,7 @@ module R2CORBA
|
|
46
45
|
self.req_.arguments.count
|
47
46
|
end
|
48
47
|
|
49
|
-
def add_out_arg(tc, nm='')
|
48
|
+
def add_out_arg(tc, nm = '')
|
50
49
|
begin
|
51
50
|
self.req_.arguments.add_value(nm, Any.to_any(nil, tc).to_java(self.req_.target._orb), CORBA::ARG_OUT)
|
52
51
|
rescue ::NativeException
|
@@ -55,7 +54,7 @@ module R2CORBA
|
|
55
54
|
self.req_.arguments.count
|
56
55
|
end
|
57
56
|
|
58
|
-
def add_inout_arg(tc, val, nm='')
|
57
|
+
def add_inout_arg(tc, val, nm = '')
|
59
58
|
begin
|
60
59
|
self.req_.arguments.add_value(nm, Any.to_any(val, tc).to_java(self.req_.target._orb), CORBA::ARG_INOUT)
|
61
60
|
rescue ::NativeException
|
@@ -89,7 +88,7 @@ module R2CORBA
|
|
89
88
|
# clear current arguments
|
90
89
|
begin
|
91
90
|
nvl = self.req_.arguments
|
92
|
-
nvl.remove(0) while nvl.count>0
|
91
|
+
nvl.remove(0) while nvl.count > 0
|
93
92
|
rescue
|
94
93
|
CORBA::Exception.native2r($!)
|
95
94
|
end
|
@@ -121,7 +120,7 @@ module R2CORBA
|
|
121
120
|
begin
|
122
121
|
# clear current exceptions
|
123
122
|
jexl = self.req_.exceptions
|
124
|
-
jexl.remove(0) while jexl.count>0
|
123
|
+
jexl.remove(0) while jexl.count > 0
|
125
124
|
# add new exceptions
|
126
125
|
exl.each do |extc|
|
127
126
|
jexl.add(extc.tc_)
|
@@ -162,7 +161,7 @@ module R2CORBA
|
|
162
161
|
elsif jex.is_a?(CORBA::Native::UnknownUserException)
|
163
162
|
CORBA::UserException._raise(jex)
|
164
163
|
else
|
165
|
-
raise CORBA::UNKNOWN.new(jex.getMessage(),0,CORBA::COMPLETED_MAYBE)
|
164
|
+
raise CORBA::UNKNOWN.new(jex.getMessage(), 0, CORBA::COMPLETED_MAYBE)
|
166
165
|
end
|
167
166
|
end
|
168
167
|
self.result
|
@@ -208,12 +207,12 @@ module R2CORBA
|
|
208
207
|
nvl = self.req_.arguments
|
209
208
|
nvl.count.times do |i|
|
210
209
|
nv = nvl.item(i)
|
211
|
-
rc << Any.from_java(nv.value,self.req_.target._orb) unless nv.flags == CORBA::ARG_IN
|
210
|
+
rc << Any.from_java(nv.value, self.req_.target._orb) unless nv.flags == CORBA::ARG_IN
|
212
211
|
end
|
213
212
|
rescue
|
214
213
|
CORBA::Exception.native2r($!)
|
215
214
|
end
|
216
|
-
if rc.size<2
|
215
|
+
if rc.size < 2
|
217
216
|
return rc.shift
|
218
217
|
else
|
219
218
|
return *rc
|
@@ -223,4 +222,4 @@ module R2CORBA
|
|
223
222
|
end
|
224
223
|
|
225
224
|
end # CORBA
|
226
|
-
end # R2CORBA
|
225
|
+
end # R2CORBA
|