r2corba 1.5.5-x64-mingw32 → 1.6.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/corba.rb +1 -1
- data/lib/corba/cbase/ORB.rb +19 -16
- data/lib/corba/cbase/Request.rb +3 -3
- data/lib/corba/cbase/Values.rb +4 -2
- data/lib/corba/cbase/exception.rb +4 -2
- data/lib/corba/cbase/poa.rb +1 -1
- data/lib/corba/cbase/policies.rb +1 -1
- data/lib/corba/cbase/require.rb +8 -1
- data/lib/corba/common/Any.rb +2 -1
- data/lib/corba/common/IDL.rb +1 -1
- data/lib/corba/common/ORB.rb +21 -21
- data/lib/corba/common/Object.rb +14 -13
- data/lib/corba/common/Servant.rb +4 -4
- data/lib/corba/common/Stub.rb +6 -6
- data/lib/corba/common/Typecode.rb +35 -8
- data/lib/corba/common/Union.rb +5 -0
- data/lib/corba/common/Values.rb +1 -0
- data/lib/corba/common/const.rb +1 -1
- data/lib/corba/common/exception.rb +2 -1
- data/lib/corba/common/version.rb +2 -2
- data/lib/corba/idl/IDL.rb +1 -1
- data/lib/corba/jbase/Any.rb +6 -4
- data/lib/corba/jbase/ORB.rb +2 -2
- data/lib/corba/jbase/Object.rb +13 -13
- data/lib/corba/jbase/Request.rb +3 -3
- data/lib/corba/jbase/Streams.rb +64 -0
- data/lib/corba/jbase/Typecode.rb +3 -2
- data/lib/corba/jbase/Values.rb +2 -0
- data/lib/corba/jbase/exception.rb +1 -0
- data/lib/corba/jbase/poa.rb +18 -18
- data/lib/corba/jbase/policies.rb +29 -29
- data/lib/corba/jbase/require.rb +4 -0
- data/lib/corba/svcs/ins/cos_naming.rb +10 -1
- data/lib/corba/svcs/ins/ins.rb +45 -45
- data/lib/corba/svcs/ins/naming_service.rb +6 -6
- data/lib/ridlbe/ruby/config.rb +27 -20
- data/lib/ridlbe/ruby/walker.rb +276 -253
- data/mkrf_conf_bingem.rb +4 -4
- data/rakelib/build.rake +1 -1
- data/rakelib/config.rake +1 -1
- data/rakelib/config.rb +9 -9
- data/rakelib/ext.rake +6 -65
- data/rakelib/ext_r2tao.rb +2 -39
- data/rakelib/gem.rake +20 -20
- data/rakelib/gem.rb +1 -1
- data/rakelib/package.rake +1 -1
- data/test/BiDirectional/client.rb +16 -16
- data/test/BiDirectional/run_test.rb +10 -10
- data/test/BiDirectional/server.rb +20 -20
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
- data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
- data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
- data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
- data/test/Collocation/run_test.rb +10 -10
- data/test/Collocation/test.rb +26 -19
- data/test/Connect_Timeout/client.rb +15 -15
- data/test/Connect_Timeout/run_test.rb +10 -10
- data/test/DII/client.rb +27 -27
- data/test/DII/run_test.rb +10 -10
- data/test/DII/server.rb +15 -15
- data/test/DSI/client.rb +15 -15
- data/test/DSI/run_test.rb +10 -10
- data/test/DSI/server.rb +16 -16
- data/test/Exceptions/client.rb +19 -19
- data/test/Exceptions/run_test.rb +10 -10
- data/test/Exceptions/server.rb +15 -15
- data/test/Hello/client.rb +15 -15
- data/test/Hello/run_test.rb +10 -10
- data/test/Hello/server.rb +16 -16
- data/test/IDL_Test/client.rb +20 -20
- data/test/IDL_Test/run_test.rb +10 -10
- data/test/IDL_Test/server.rb +18 -18
- data/test/IORMap/client.rb +14 -14
- data/test/IORMap/run_test.rb +10 -10
- data/test/IORMap/server.rb +22 -22
- data/test/IORTable/client.rb +14 -14
- data/test/IORTable/run_test.rb +10 -10
- data/test/IORTable/server.rb +22 -22
- data/test/Implicit_Conversion/client.rb +19 -16
- data/test/Implicit_Conversion/run_test.rb +10 -10
- data/test/Implicit_Conversion/server.rb +15 -15
- data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
- data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
- data/test/Multi_Threading/Simple/client.rb +15 -15
- data/test/Multi_Threading/Simple/run_test.rb +10 -10
- data/test/Multi_Threading/Simple/server.rb +15 -15
- data/test/Multi_Threading/Threads/client.rb +15 -15
- data/test/Multi_Threading/Threads/run_test.rb +10 -10
- data/test/Multi_Threading/Threads/server.rb +17 -17
- data/test/Multi_Threading/Threads/watchdog.rb +15 -15
- data/test/Multiple_Servant_Interfaces/client.rb +13 -13
- data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
- data/test/Multiple_Servant_Interfaces/server.rb +17 -17
- data/test/Nil/run_test.rb +10 -10
- data/test/Nil/test.rb +13 -13
- data/test/OBV/AbstractInterface/client.rb +13 -13
- data/test/OBV/AbstractInterface/run_test.rb +10 -10
- data/test/OBV/AbstractInterface/server.rb +19 -18
- data/test/OBV/Custom/OBV_impl.rb +2 -0
- data/test/OBV/Custom/client.rb +13 -13
- data/test/OBV/Custom/run_test.rb +10 -10
- data/test/OBV/Custom/server.rb +15 -15
- data/test/OBV/Simple/OBV_impl.rb +1 -0
- data/test/OBV/Simple/client.rb +13 -13
- data/test/OBV/Simple/run_test.rb +10 -10
- data/test/OBV/Simple/server.rb +15 -15
- data/test/OBV/Simple_Event/Event_impl.rb +1 -0
- data/test/OBV/Simple_Event/client.rb +13 -13
- data/test/OBV/Simple_Event/run_test.rb +10 -10
- data/test/OBV/Simple_Event/server.rb +15 -15
- data/test/OBV/Supports/client.rb +18 -18
- data/test/OBV/Supports/run_test.rb +10 -10
- data/test/OBV/Supports/server.rb +14 -14
- data/test/OBV/Supports/supports_impl.rb +3 -0
- data/test/OBV/Tree/client.rb +13 -13
- data/test/OBV/Tree/run_test.rb +10 -10
- data/test/OBV/Tree/server.rb +18 -18
- data/test/OBV/Truncatable/client.rb +56 -56
- data/test/OBV/Truncatable/run_test.rb +10 -10
- data/test/OBV/Truncatable/server.rb +14 -14
- data/test/OBV/ValueBox/client.rb +148 -147
- data/test/OBV/ValueBox/run_test.rb +10 -10
- data/test/OBV/ValueBox/server.rb +15 -15
- data/test/Object/client.rb +13 -13
- data/test/Object/run_test.rb +10 -10
- data/test/Object/server.rb +18 -18
- data/test/POA/run_test.rb +10 -10
- data/test/POA/test.rb +15 -15
- data/test/Param_Test/client.rb +47 -47
- data/test/Param_Test/run_test.rb +10 -10
- data/test/Param_Test/server.rb +55 -55
- data/test/Performance/Simple/client.rb +15 -15
- data/test/Performance/Simple/run_test.rb +10 -10
- data/test/Performance/Simple/server.rb +15 -15
- data/test/Policies/run_test.rb +10 -10
- data/test/Policies/test.rb +23 -23
- data/test/Timeout/client.rb +17 -17
- data/test/Timeout/run_test.rb +10 -10
- data/test/Timeout/server.rb +18 -18
- data/test/lib/test.rb +13 -7
- data/test/test_runner.rb +19 -19
- metadata +8 -8
data/lib/corba/jbase/Typecode.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
11
|
#--------------------------------------------------------------------
|
12
|
-
require
|
12
|
+
require 'corba/jbase/Any.rb'
|
13
13
|
require 'bigdecimal'
|
14
14
|
|
15
15
|
module R2CORBA
|
@@ -449,6 +449,7 @@ module R2CORBA
|
|
449
449
|
super(id)
|
450
450
|
end
|
451
451
|
end
|
452
|
+
|
452
453
|
# because creating the native tc involves creating Any's we postpone until actually needed
|
453
454
|
def tc_
|
454
455
|
@tc_ ||= begin
|
@@ -504,7 +505,7 @@ module R2CORBA
|
|
504
505
|
def TypeCode.get_primitive_tc(kind)
|
505
506
|
case kind
|
506
507
|
when CORBA::TK_OBJREF
|
507
|
-
TypeCode::ObjectRef.new(
|
508
|
+
TypeCode::ObjectRef.new('IDL:omg.org/CORBA/Object:1.0', 'Object', CORBA::Object).freeze
|
508
509
|
else
|
509
510
|
TypeCode._wrap_native(CORBA::ORB._orb.get_primitive_tc(CORBA::Native::TCKind.from_int(kind.to_i)))
|
510
511
|
end
|
data/lib/corba/jbase/Values.rb
CHANGED
@@ -21,6 +21,7 @@ module R2CORBA
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
+
|
24
25
|
module ValueBase
|
25
26
|
def self.included(mod)
|
26
27
|
mod.module_eval do
|
@@ -111,6 +112,7 @@ module R2CORBA
|
|
111
112
|
class FactoryBase < CORBA::Portable::ValueFactoryBase
|
112
113
|
## generic factory base
|
113
114
|
end
|
115
|
+
|
114
116
|
def self.included(mod)
|
115
117
|
mod.module_eval do
|
116
118
|
include CORBA::ValueBase unless self.include?(CORBA::ValueBase)
|
@@ -73,6 +73,7 @@ module R2CORBA
|
|
73
73
|
end
|
74
74
|
raise exklass.new(jex)
|
75
75
|
end
|
76
|
+
|
76
77
|
def initialize(*args)
|
77
78
|
if (NativeException === args.first and args.first.cause.is_a? Native::SystemException) or args.first.is_a?(Native::SystemException)
|
78
79
|
java_ex = args.first.is_a?(Native::SystemException) ? args.first : args.first.cause
|
data/lib/corba/jbase/poa.rb
CHANGED
@@ -40,7 +40,7 @@ module R2CORBA
|
|
40
40
|
rescue ::NativeException
|
41
41
|
CORBA::Exception.native2r($!)
|
42
42
|
end
|
43
|
-
end #of operation destroy
|
43
|
+
end # of operation destroy
|
44
44
|
|
45
45
|
def the_name()
|
46
46
|
begin
|
@@ -48,7 +48,7 @@ module R2CORBA
|
|
48
48
|
rescue ::NativeException
|
49
49
|
CORBA::Exception.native2r($!)
|
50
50
|
end
|
51
|
-
end #of attribute get_the_name
|
51
|
+
end # of attribute get_the_name
|
52
52
|
|
53
53
|
def the_POAManager()
|
54
54
|
begin
|
@@ -56,7 +56,7 @@ module R2CORBA
|
|
56
56
|
rescue ::NativeException
|
57
57
|
CORBA::Exception.native2r($!)
|
58
58
|
end
|
59
|
-
end #of attribute get_the_POAManager
|
59
|
+
end # of attribute get_the_POAManager
|
60
60
|
|
61
61
|
def the_parent()
|
62
62
|
begin
|
@@ -64,7 +64,7 @@ module R2CORBA
|
|
64
64
|
rescue ::NativeException
|
65
65
|
CORBA::Exception.native2r($!)
|
66
66
|
end
|
67
|
-
end #of attribute get_the_parent
|
67
|
+
end # of attribute get_the_parent
|
68
68
|
|
69
69
|
def the_children()
|
70
70
|
begin
|
@@ -72,7 +72,7 @@ module R2CORBA
|
|
72
72
|
rescue ::NativeException
|
73
73
|
CORBA::Exception.native2r($!)
|
74
74
|
end
|
75
|
-
end #of attribute get_the_children
|
75
|
+
end # of attribute get_the_children
|
76
76
|
|
77
77
|
def activate_object(p_servant)
|
78
78
|
begin
|
@@ -80,7 +80,7 @@ module R2CORBA
|
|
80
80
|
rescue ::NativeException
|
81
81
|
CORBA::Exception.native2r($!)
|
82
82
|
end
|
83
|
-
end #of operation activate_object
|
83
|
+
end # of operation activate_object
|
84
84
|
|
85
85
|
def activate_object_with_id(r_id, p_servant)
|
86
86
|
begin
|
@@ -88,7 +88,7 @@ module R2CORBA
|
|
88
88
|
rescue ::NativeException
|
89
89
|
CORBA::Exception.native2r($!)
|
90
90
|
end
|
91
|
-
end #of operation activate_object_with_id
|
91
|
+
end # of operation activate_object_with_id
|
92
92
|
|
93
93
|
def deactivate_object(oid)
|
94
94
|
begin
|
@@ -96,7 +96,7 @@ module R2CORBA
|
|
96
96
|
rescue ::NativeException
|
97
97
|
CORBA::Exception.native2r($!)
|
98
98
|
end
|
99
|
-
end #of operation deactivate_object
|
99
|
+
end # of operation deactivate_object
|
100
100
|
|
101
101
|
def create_reference(intf)
|
102
102
|
begin
|
@@ -104,7 +104,7 @@ module R2CORBA
|
|
104
104
|
rescue ::NativeException
|
105
105
|
CORBA::Exception.native2r($!)
|
106
106
|
end
|
107
|
-
end #of operation create_reference
|
107
|
+
end # of operation create_reference
|
108
108
|
|
109
109
|
def create_reference_with_id(oid, intf)
|
110
110
|
begin
|
@@ -112,7 +112,7 @@ module R2CORBA
|
|
112
112
|
rescue ::NativeException
|
113
113
|
CORBA::Exception.native2r($!)
|
114
114
|
end
|
115
|
-
end #of operation create_reference_with_id
|
115
|
+
end # of operation create_reference_with_id
|
116
116
|
|
117
117
|
def servant_to_id(p_servant)
|
118
118
|
begin
|
@@ -120,7 +120,7 @@ module R2CORBA
|
|
120
120
|
rescue ::NativeException
|
121
121
|
CORBA::Exception.native2r($!)
|
122
122
|
end
|
123
|
-
end #of operation servant_to_id
|
123
|
+
end # of operation servant_to_id
|
124
124
|
|
125
125
|
def servant_to_reference(p_servant)
|
126
126
|
begin
|
@@ -128,7 +128,7 @@ module R2CORBA
|
|
128
128
|
rescue ::NativeException
|
129
129
|
CORBA::Exception.native2r($!)
|
130
130
|
end
|
131
|
-
end #of operation servant_to_reference
|
131
|
+
end # of operation servant_to_reference
|
132
132
|
|
133
133
|
def reference_to_servant(reference)
|
134
134
|
begin
|
@@ -136,7 +136,7 @@ module R2CORBA
|
|
136
136
|
rescue ::NativeException
|
137
137
|
CORBA::Exception.native2r($!)
|
138
138
|
end
|
139
|
-
end #of operation reference_to_servant
|
139
|
+
end # of operation reference_to_servant
|
140
140
|
|
141
141
|
def reference_to_id(reference)
|
142
142
|
begin
|
@@ -144,7 +144,7 @@ module R2CORBA
|
|
144
144
|
rescue ::NativeException
|
145
145
|
CORBA::Exception.native2r($!)
|
146
146
|
end
|
147
|
-
end #of operation reference_to_id
|
147
|
+
end # of operation reference_to_id
|
148
148
|
|
149
149
|
def id_to_servant(oid)
|
150
150
|
begin
|
@@ -152,7 +152,7 @@ module R2CORBA
|
|
152
152
|
rescue ::NativeException
|
153
153
|
CORBA::Exception.native2r($!)
|
154
154
|
end
|
155
|
-
end #of operation id_to_servant
|
155
|
+
end # of operation id_to_servant
|
156
156
|
|
157
157
|
def id_to_reference(oid)
|
158
158
|
begin
|
@@ -160,7 +160,7 @@ module R2CORBA
|
|
160
160
|
rescue ::NativeException
|
161
161
|
CORBA::Exception.native2r($!)
|
162
162
|
end
|
163
|
-
end #of operation id_to_reference
|
163
|
+
end # of operation id_to_reference
|
164
164
|
|
165
165
|
def create_POA(adapter_name, a_POAManager, policies)
|
166
166
|
raise CORBA::BAD_PARAM.new('expected POAManager', 0, CORBA::COMPLETED_NO) unless a_POAManager.is_a?(PortableServer::POAManager)
|
@@ -172,7 +172,7 @@ module R2CORBA
|
|
172
172
|
rescue ::NativeException
|
173
173
|
CORBA::Exception.native2r($!)
|
174
174
|
end
|
175
|
-
end #of operation create_POA
|
175
|
+
end # of operation create_POA
|
176
176
|
|
177
177
|
def find_POA(adapter_name, activate_it)
|
178
178
|
begin
|
@@ -180,7 +180,7 @@ module R2CORBA
|
|
180
180
|
rescue ::NativeException
|
181
181
|
CORBA::Exception.native2r($!)
|
182
182
|
end
|
183
|
-
end #of operation find_POA
|
183
|
+
end # of operation find_POA
|
184
184
|
end # POA
|
185
185
|
|
186
186
|
module POAManager
|
data/lib/corba/jbase/policies.rb
CHANGED
@@ -53,7 +53,7 @@ module R2CORBA
|
|
53
53
|
end
|
54
54
|
jpolicies.collect {|jpol| Policy._wrap_native(jpol) }
|
55
55
|
end
|
56
|
-
end #of operation get_policy_overrides
|
56
|
+
end # of operation get_policy_overrides
|
57
57
|
|
58
58
|
def _set_policy_overrides(policies, set_add)
|
59
59
|
raise CORBA::INV_OBJREF.new if self._is_nil?()
|
@@ -91,7 +91,7 @@ module R2CORBA
|
|
91
91
|
rescue ::NativeException
|
92
92
|
CORBA::Exception.native2r($!)
|
93
93
|
end
|
94
|
-
end #of attribute get_policy_type
|
94
|
+
end # of attribute get_policy_type
|
95
95
|
|
96
96
|
def copy()
|
97
97
|
begin
|
@@ -99,7 +99,7 @@ module R2CORBA
|
|
99
99
|
rescue ::NativeException
|
100
100
|
CORBA::Exception.native2r($!)
|
101
101
|
end
|
102
|
-
end #of operation copy
|
102
|
+
end # of operation copy
|
103
103
|
|
104
104
|
def destroy()
|
105
105
|
begin
|
@@ -108,7 +108,7 @@ module R2CORBA
|
|
108
108
|
CORBA::Exception.native2r($!)
|
109
109
|
end
|
110
110
|
@objref_ = nil
|
111
|
-
end #of operation destroy
|
111
|
+
end # of operation destroy
|
112
112
|
end # Policy
|
113
113
|
|
114
114
|
module PolicyManager
|
@@ -121,7 +121,7 @@ module R2CORBA
|
|
121
121
|
CORBA::Exception.native2r($!)
|
122
122
|
end
|
123
123
|
jpolicies.collect {|jpol| Policy._wrap_native(jpol) }
|
124
|
-
end #of operation get_policy_overrides
|
124
|
+
end # of operation get_policy_overrides
|
125
125
|
|
126
126
|
def set_policy_overrides(policies, set_add)
|
127
127
|
jpolicies = CORBA::Native::Reflect::Array.newInstance(CORBA::Native::Policy.java_class, policies.size)
|
@@ -131,7 +131,7 @@ module R2CORBA
|
|
131
131
|
rescue ::NativeException
|
132
132
|
CORBA::Exception.native2r($!)
|
133
133
|
end
|
134
|
-
end #of operation set_policy_overrides
|
134
|
+
end # of operation set_policy_overrides
|
135
135
|
end # Policy
|
136
136
|
|
137
137
|
end # CORBA
|
@@ -147,7 +147,7 @@ module R2CORBA
|
|
147
147
|
rescue ::NativeException
|
148
148
|
CORBA::Exception.native2r($!)
|
149
149
|
end
|
150
|
-
end #of operation create_thread_policy
|
150
|
+
end # of operation create_thread_policy
|
151
151
|
|
152
152
|
def create_lifespan_policy(value)
|
153
153
|
begin
|
@@ -157,7 +157,7 @@ module R2CORBA
|
|
157
157
|
rescue ::NativeException
|
158
158
|
CORBA::Exception.native2r($!)
|
159
159
|
end
|
160
|
-
end #of operation create_lifespan_policy
|
160
|
+
end # of operation create_lifespan_policy
|
161
161
|
|
162
162
|
def create_id_uniqueness_policy(value)
|
163
163
|
begin
|
@@ -167,7 +167,7 @@ module R2CORBA
|
|
167
167
|
rescue ::NativeException
|
168
168
|
CORBA::Exception.native2r($!)
|
169
169
|
end
|
170
|
-
end #of operation create_id_uniqueness_policy
|
170
|
+
end # of operation create_id_uniqueness_policy
|
171
171
|
|
172
172
|
def create_id_assignment_policy(value)
|
173
173
|
begin
|
@@ -177,7 +177,7 @@ module R2CORBA
|
|
177
177
|
rescue ::NativeException
|
178
178
|
CORBA::Exception.native2r($!)
|
179
179
|
end
|
180
|
-
end #of operation create_id_assignment_policy
|
180
|
+
end # of operation create_id_assignment_policy
|
181
181
|
|
182
182
|
def create_implicit_activation_policy(value)
|
183
183
|
begin
|
@@ -187,7 +187,7 @@ module R2CORBA
|
|
187
187
|
rescue ::NativeException
|
188
188
|
CORBA::Exception.native2r($!)
|
189
189
|
end
|
190
|
-
end #of operation create_implicit_activation_policy
|
190
|
+
end # of operation create_implicit_activation_policy
|
191
191
|
|
192
192
|
def create_servant_retention_policy(value)
|
193
193
|
begin
|
@@ -197,7 +197,7 @@ module R2CORBA
|
|
197
197
|
rescue ::NativeException
|
198
198
|
CORBA::Exception.native2r($!)
|
199
199
|
end
|
200
|
-
end #of operation create_servant_retention_policy
|
200
|
+
end # of operation create_servant_retention_policy
|
201
201
|
|
202
202
|
def create_request_processing_policy(value)
|
203
203
|
begin
|
@@ -207,7 +207,7 @@ module R2CORBA
|
|
207
207
|
rescue ::NativeException
|
208
208
|
CORBA::Exception.native2r($!)
|
209
209
|
end
|
210
|
-
end #of operation create_request_processing_policy
|
210
|
+
end # of operation create_request_processing_policy
|
211
211
|
end # POA
|
212
212
|
|
213
213
|
module ThreadPolicy ## interface
|
@@ -217,8 +217,8 @@ module R2CORBA
|
|
217
217
|
rescue ::NativeException
|
218
218
|
CORBA::Exception.native2r($!)
|
219
219
|
end
|
220
|
-
end #of attribute get_value
|
221
|
-
end #of interface ThreadPolicy
|
220
|
+
end # of attribute get_value
|
221
|
+
end # of interface ThreadPolicy
|
222
222
|
|
223
223
|
module LifespanPolicy ## interface
|
224
224
|
def value()
|
@@ -227,8 +227,8 @@ module R2CORBA
|
|
227
227
|
rescue ::NativeException
|
228
228
|
CORBA::Exception.native2r($!)
|
229
229
|
end
|
230
|
-
end #of attribute get_value
|
231
|
-
end #of interface LifespanPolicy
|
230
|
+
end # of attribute get_value
|
231
|
+
end # of interface LifespanPolicy
|
232
232
|
|
233
233
|
module IdUniquenessPolicy ## interface
|
234
234
|
def value()
|
@@ -237,8 +237,8 @@ module R2CORBA
|
|
237
237
|
rescue ::NativeException
|
238
238
|
CORBA::Exception.native2r($!)
|
239
239
|
end
|
240
|
-
end #of attribute get_value
|
241
|
-
end #of interface IdUniquenessPolicy
|
240
|
+
end # of attribute get_value
|
241
|
+
end # of interface IdUniquenessPolicy
|
242
242
|
|
243
243
|
module IdAssignmentPolicy ## interface
|
244
244
|
def value()
|
@@ -247,8 +247,8 @@ module R2CORBA
|
|
247
247
|
rescue ::NativeException
|
248
248
|
CORBA::Exception.native2r($!)
|
249
249
|
end
|
250
|
-
end #of attribute get_value
|
251
|
-
end #of interface IdAssignmentPolicy
|
250
|
+
end # of attribute get_value
|
251
|
+
end # of interface IdAssignmentPolicy
|
252
252
|
|
253
253
|
module ImplicitActivationPolicy ## interface
|
254
254
|
def value()
|
@@ -257,8 +257,8 @@ module R2CORBA
|
|
257
257
|
rescue ::NativeException
|
258
258
|
CORBA::Exception.native2r($!)
|
259
259
|
end
|
260
|
-
end #of attribute get_value
|
261
|
-
end #of interface ImplicitActivationPolicy
|
260
|
+
end # of attribute get_value
|
261
|
+
end # of interface ImplicitActivationPolicy
|
262
262
|
|
263
263
|
module ServantRetentionPolicy ## interface
|
264
264
|
def value()
|
@@ -267,8 +267,8 @@ module R2CORBA
|
|
267
267
|
rescue ::NativeException
|
268
268
|
CORBA::Exception.native2r($!)
|
269
269
|
end
|
270
|
-
end #of attribute get_value
|
271
|
-
end #of interface RequestProcessingPolicy
|
270
|
+
end # of attribute get_value
|
271
|
+
end # of interface RequestProcessingPolicy
|
272
272
|
|
273
273
|
module RequestProcessingPolicy ## interface
|
274
274
|
def value()
|
@@ -277,8 +277,8 @@ module R2CORBA
|
|
277
277
|
rescue ::NativeException
|
278
278
|
CORBA::Exception.native2r($!)
|
279
279
|
end
|
280
|
-
end #of attribute get_value
|
281
|
-
end #of interface RequestProcessingPolicy
|
280
|
+
end # of attribute get_value
|
281
|
+
end # of interface RequestProcessingPolicy
|
282
282
|
|
283
283
|
end # PortableServer
|
284
284
|
|
@@ -291,8 +291,8 @@ module R2CORBA
|
|
291
291
|
rescue ::NativeException
|
292
292
|
CORBA::Exception.native2r($!)
|
293
293
|
end
|
294
|
-
end #of attribute get_value
|
295
|
-
end #of interface BidirectionalPolicy
|
294
|
+
end # of attribute get_value
|
295
|
+
end # of interface BidirectionalPolicy
|
296
296
|
|
297
297
|
end # BiDirPolicy
|
298
298
|
|
data/lib/corba/jbase/require.rb
CHANGED
@@ -50,18 +50,22 @@ module R2CORBA
|
|
50
50
|
module Portable
|
51
51
|
include_package 'org.omg.CORBA.portable'
|
52
52
|
end
|
53
|
+
|
53
54
|
module V2_3
|
54
55
|
include_package 'org.omg.CORBA_2_3'
|
55
56
|
module Portable
|
56
57
|
include_package 'org.omg.CORBA.portable'
|
57
58
|
end
|
58
59
|
end
|
60
|
+
|
59
61
|
module V2_5
|
60
62
|
include_package 'org.omg.CORBA_2_5'
|
61
63
|
end
|
64
|
+
|
62
65
|
module V3_0
|
63
66
|
include_package 'org.omg.CORBA_3_0'
|
64
67
|
end
|
68
|
+
|
65
69
|
module Jacorb
|
66
70
|
module Util
|
67
71
|
java_import org.jacorb.util.Version
|
@@ -23,6 +23,7 @@ module CosNaming
|
|
23
23
|
def to_key
|
24
24
|
"#{self.r_id}|#{self.kind}"
|
25
25
|
end
|
26
|
+
|
26
27
|
# convert NameComponent to stringified format according to spec
|
27
28
|
def to_string
|
28
29
|
s = ''
|
@@ -31,6 +32,7 @@ module CosNaming
|
|
31
32
|
s << self.kind.gsub(/([\/\.\\])/, '\\\1') unless self.kind.to_s.empty?
|
32
33
|
s
|
33
34
|
end
|
35
|
+
|
34
36
|
# convert stringified name back to NameComponent
|
35
37
|
def self.from_string(snc)
|
36
38
|
raise CosNaming::NamingContext::InvalidName.new if snc.empty?
|
@@ -110,6 +112,7 @@ module R2CORBA
|
|
110
112
|
super
|
111
113
|
@map_ = {}
|
112
114
|
end
|
115
|
+
|
113
116
|
def size()
|
114
117
|
rc = 0
|
115
118
|
synchronize do
|
@@ -117,6 +120,7 @@ module R2CORBA
|
|
117
120
|
end
|
118
121
|
return rc
|
119
122
|
end
|
123
|
+
|
120
124
|
def has_key?(key)
|
121
125
|
rc = false
|
122
126
|
synchronize do
|
@@ -124,6 +128,7 @@ module R2CORBA
|
|
124
128
|
end
|
125
129
|
return rc
|
126
130
|
end
|
131
|
+
|
127
132
|
def [](key)
|
128
133
|
rc = nil
|
129
134
|
synchronize do
|
@@ -131,12 +136,14 @@ module R2CORBA
|
|
131
136
|
end
|
132
137
|
return rc
|
133
138
|
end
|
139
|
+
|
134
140
|
def []=(key, value)
|
135
141
|
synchronize do
|
136
142
|
@map_[key] = value
|
137
143
|
end
|
138
144
|
value
|
139
145
|
end
|
146
|
+
|
140
147
|
def delete(key)
|
141
148
|
rc = nil
|
142
149
|
synchronize do
|
@@ -144,6 +151,7 @@ module R2CORBA
|
|
144
151
|
end
|
145
152
|
return rc
|
146
153
|
end
|
154
|
+
|
147
155
|
def values
|
148
156
|
rc = nil
|
149
157
|
synchronize do
|
@@ -151,6 +159,7 @@ module R2CORBA
|
|
151
159
|
end
|
152
160
|
return rc
|
153
161
|
end
|
162
|
+
|
154
163
|
def each(&block)
|
155
164
|
synchronize do
|
156
165
|
@map_.each &block
|
@@ -417,7 +426,7 @@ module R2CORBA
|
|
417
426
|
end
|
418
427
|
end
|
419
428
|
|
420
|
-
end #of NamingContext servant
|
429
|
+
end # of NamingContext servant
|
421
430
|
|
422
431
|
end
|
423
432
|
end
|