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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ce481264fb288de066b576b8713c3cb78736a570bff6b4f6f5933784b97e4fa1
|
4
|
+
data.tar.gz: 4b291b4209f1872a2c802ead34dfd5a16867f84db9a8d82878af8d3ef775c01a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 894c016a8957ff30fb06be838c44e9bf700d7a697bb259f067edb4b23382093beb2003d21810c4b7daa72c7052c2eed8b640f8e3b87c6086b2867c4984f60c8f
|
7
|
+
data.tar.gz: 4e4eb46073d5a10f396ec0d42a62fefebd9ac4a1f7c8b9dbd68186490501efe7aeecb9298114ff0a567b44428f2a438536612784b6ec50ac37ce9f1cd2c9be15
|
data/lib/corba.rb
CHANGED
data/lib/corba/cbase/ORB.rb
CHANGED
@@ -144,17 +144,20 @@ module R2CORBA
|
|
144
144
|
@q_ = []
|
145
145
|
super
|
146
146
|
end
|
147
|
+
|
147
148
|
def push(vfklass)
|
148
149
|
synchronize do
|
149
150
|
@q_ << vfklass
|
150
151
|
end
|
151
152
|
end
|
153
|
+
|
152
154
|
def process_all(&block)
|
153
155
|
synchronize do
|
154
156
|
@q_.each { |vf| block.call(vf) }
|
155
157
|
@q_.clear
|
156
158
|
end
|
157
159
|
end
|
160
|
+
|
158
161
|
def empty?()
|
159
162
|
f = false
|
160
163
|
synchronize do
|
@@ -186,22 +189,22 @@ module R2CORBA
|
|
186
189
|
private
|
187
190
|
@@sigreg = {}
|
188
191
|
def CORBA.signal_numbers
|
189
|
-
(
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
192
|
+
([1, # HUP
|
193
|
+
2, # INT
|
194
|
+
3, # QUIT
|
195
|
+
5, # TRAP
|
196
|
+
6, # ABRT
|
197
|
+
10, # USR1
|
198
|
+
12, # USR2
|
199
|
+
13, # SIGPIPE
|
200
|
+
14, # ALRM
|
201
|
+
15, # TERM
|
202
|
+
17, # CHLD
|
203
|
+
18, # CONT
|
204
|
+
23, # URG
|
205
|
+
30, # PWR
|
206
|
+
31 # SYS
|
207
|
+
]) & Signal.list.values
|
205
208
|
end
|
206
209
|
|
207
210
|
def CORBA.handled_signals
|
data/lib/corba/cbase/Request.rb
CHANGED
@@ -14,17 +14,17 @@ module R2CORBA
|
|
14
14
|
|
15
15
|
module Request
|
16
16
|
|
17
|
-
def add_in_arg(tc, val, nm='')
|
17
|
+
def add_in_arg(tc, val, nm = '')
|
18
18
|
self._arguments << [nm, CORBA::ARG_IN, tc, val]
|
19
19
|
self._arguments.size
|
20
20
|
end
|
21
21
|
|
22
|
-
def add_out_arg(tc, nm='')
|
22
|
+
def add_out_arg(tc, nm = '')
|
23
23
|
self._arguments << [nm, CORBA::ARG_OUT, tc]
|
24
24
|
self._arguments.size
|
25
25
|
end
|
26
26
|
|
27
|
-
def add_inout_arg(tc, val, nm='')
|
27
|
+
def add_inout_arg(tc, val, nm = '')
|
28
28
|
self._arguments << [nm, CORBA::ARG_INOUT, tc, val]
|
29
29
|
self._arguments.size
|
30
30
|
end
|
data/lib/corba/cbase/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
|
@@ -30,10 +31,10 @@ module R2CORBA
|
|
30
31
|
def kind_of?(mod)
|
31
32
|
if mod < CORBA::AbstractValueBase && mod.const_defined?(:Intf)
|
32
33
|
org_kind_of?(mod::Intf)
|
33
|
-
#super(mod::Intf) ## problematic with Ruby 1.9.2 (known bug)
|
34
|
+
# super(mod::Intf) ## problematic with Ruby 1.9.2 (known bug)
|
34
35
|
else
|
35
36
|
org_kind_of?(mod)
|
36
|
-
#super ## problematic with Ruby 1.9.2 (known bug)
|
37
|
+
# super ## problematic with Ruby 1.9.2 (known bug)
|
37
38
|
end
|
38
39
|
end
|
39
40
|
alias :is_a? :kind_of?
|
@@ -97,6 +98,7 @@ module R2CORBA
|
|
97
98
|
class FactoryBase < CORBA::Portable::ValueFactoryBase
|
98
99
|
## generic factory base
|
99
100
|
end
|
101
|
+
|
100
102
|
def self.included(mod)
|
101
103
|
mod.module_eval do
|
102
104
|
include CORBA::ValueBase unless self.include?(CORBA::ValueBase)
|
@@ -39,13 +39,14 @@ module R2CORBA
|
|
39
39
|
exklass = CORBA.const_defined?(exklass) ? CORBA.const_get(exklass) : nil
|
40
40
|
if exklass.nil? || !(CORBA::SystemException > exklass)
|
41
41
|
Kernel.raise InternalError,
|
42
|
-
|
42
|
+
'Unknown SystemException raised: ' +
|
43
43
|
id.to_s + ' [' + reason.to_s + ']'
|
44
44
|
else
|
45
45
|
Kernel.raise exklass.new(reason, minor, completed)
|
46
46
|
end
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
|
+
def initialize(reason = '', minor = 0, completed = nil)
|
49
50
|
super(reason)
|
50
51
|
@minor = minor
|
51
52
|
@completed = completed
|
@@ -53,6 +54,7 @@ module R2CORBA
|
|
53
54
|
end
|
54
55
|
attr_accessor :ids
|
55
56
|
def _ids; @ids; end
|
57
|
+
|
56
58
|
def _interface_repository_id
|
57
59
|
self.class::Id
|
58
60
|
end
|
data/lib/corba/cbase/poa.rb
CHANGED
data/lib/corba/cbase/policies.rb
CHANGED
data/lib/corba/cbase/require.rb
CHANGED
@@ -13,7 +13,14 @@
|
|
13
13
|
begin
|
14
14
|
_ext_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../../ext'))
|
15
15
|
$: << _ext_dir unless $:.include?(_ext_dir) || !File.directory?(_ext_dir)
|
16
|
-
|
16
|
+
if RUBY_PLATFORM =~ /mingw32/
|
17
|
+
require 'ruby_installer/runtime'
|
18
|
+
RubyInstaller::Runtime.add_dll_directory(_ext_dir)
|
19
|
+
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
|
20
|
+
RubyInstaller::Runtime.add_dll_directory(path) if File.exist?(File.join(path, 'libACE.dll'))
|
21
|
+
end
|
22
|
+
end
|
23
|
+
require 'libr2tao'
|
17
24
|
rescue LoadError
|
18
25
|
$stderr.puts $!.to_s if $VERBOSE
|
19
26
|
raise
|
data/lib/corba/common/Any.rb
CHANGED
@@ -58,7 +58,7 @@ module R2CORBA
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
def Any.to_any(o, tc=nil)
|
61
|
+
def Any.to_any(o, tc = nil)
|
62
62
|
if tc.nil?
|
63
63
|
tc = self.typecode_for_value(o)
|
64
64
|
if tc.is_a?(CORBA::TypeCode)
|
@@ -72,6 +72,7 @@ module R2CORBA
|
|
72
72
|
def _tc
|
73
73
|
@__tc
|
74
74
|
end
|
75
|
+
|
75
76
|
def _value
|
76
77
|
@__value
|
77
78
|
end
|
data/lib/corba/common/IDL.rb
CHANGED
data/lib/corba/common/ORB.rb
CHANGED
@@ -60,8 +60,8 @@ module R2CORBA
|
|
60
60
|
self
|
61
61
|
end
|
62
62
|
|
63
|
-
#obj ::CORBA::Object
|
64
|
-
#ret ::String
|
63
|
+
# obj ::CORBA::Object
|
64
|
+
# ret ::String
|
65
65
|
def object_to_string(obj)
|
66
66
|
raise CORBA::BAD_PARAM.new('CORBA::Object required', 0, CORBA::COMPLETED_NO) unless obj.is_a?(CORBA::Object)
|
67
67
|
begin
|
@@ -71,8 +71,8 @@ module R2CORBA
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
-
#str ::String
|
75
|
-
#ret ::CORBA::Object
|
74
|
+
# str ::String
|
75
|
+
# ret ::CORBA::Object
|
76
76
|
def string_to_object(str)
|
77
77
|
begin
|
78
78
|
Object._wrap_native(self.orb_.string_to_object(str))
|
@@ -81,41 +81,41 @@ module R2CORBA
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
-
#str ::Integer
|
85
|
-
#ret ::CORBA::NVList
|
84
|
+
# str ::Integer
|
85
|
+
# ret ::CORBA::NVList
|
86
86
|
def create_list(count)
|
87
87
|
raise CORBA::NO_IMPLEMENT
|
88
88
|
end
|
89
89
|
|
90
|
-
#str OperationDef
|
91
|
-
#ret ::CORBA::NVList
|
90
|
+
# str OperationDef
|
91
|
+
# ret ::CORBA::NVList
|
92
92
|
def create_operation_list(oper)
|
93
93
|
raise CORBA::NO_IMPLEMENT
|
94
94
|
end
|
95
95
|
|
96
|
-
#ret Context
|
96
|
+
# ret Context
|
97
97
|
def get_default_context()
|
98
98
|
raise CORBA::NO_IMPLEMENT
|
99
99
|
end
|
100
100
|
|
101
|
-
#req RequestSeq
|
102
|
-
#ret void
|
101
|
+
# req RequestSeq
|
102
|
+
# ret void
|
103
103
|
def send_multiple_request_oneway(req)
|
104
104
|
raise CORBA::NO_IMPLEMENT
|
105
105
|
end
|
106
106
|
|
107
|
-
#req RequestSeq
|
108
|
-
#ret void
|
107
|
+
# req RequestSeq
|
108
|
+
# ret void
|
109
109
|
def send_multiple_request_deferred(req)
|
110
110
|
raise CORBA::NO_IMPLEMENT
|
111
111
|
end
|
112
112
|
|
113
|
-
#ret boolean
|
113
|
+
# ret boolean
|
114
114
|
def poll_next_response()
|
115
115
|
raise CORBA::NO_IMPLEMENT
|
116
116
|
end
|
117
117
|
|
118
|
-
#ret Request
|
118
|
+
# ret Request
|
119
119
|
def get_next_response()
|
120
120
|
raise CORBA::NO_IMPLEMENT
|
121
121
|
end
|
@@ -208,13 +208,13 @@ module R2CORBA
|
|
208
208
|
|
209
209
|
# Integer bound
|
210
210
|
# ret TypeCode
|
211
|
-
def create_string_tc(bound=nil)
|
211
|
+
def create_string_tc(bound = nil)
|
212
212
|
return CORBA::TypeCode::String.new(bound)
|
213
213
|
end
|
214
214
|
|
215
215
|
# Integer bound
|
216
216
|
# ret TypeCode
|
217
|
-
def create_wstring_tc(bound=nil)
|
217
|
+
def create_wstring_tc(bound = nil)
|
218
218
|
return CORBA::TypeCode::WString.new(bound)
|
219
219
|
end
|
220
220
|
|
@@ -334,8 +334,8 @@ module R2CORBA
|
|
334
334
|
|
335
335
|
# PolicyType type
|
336
336
|
# any val
|
337
|
-
#ret Policy
|
338
|
-
#raises PolicyError
|
337
|
+
# ret Policy
|
338
|
+
# raises PolicyError
|
339
339
|
def create_policy(type, val)
|
340
340
|
raise ::CORBA::NO_IMPLEMENT
|
341
341
|
end
|
@@ -345,7 +345,7 @@ module R2CORBA
|
|
345
345
|
=end
|
346
346
|
# RepositoryId id
|
347
347
|
# ValueFactory factory
|
348
|
-
#ret ValueFactory
|
348
|
+
# ret ValueFactory
|
349
349
|
def register_value_factory(id, factory)
|
350
350
|
self.orb_().register_value_factory(id, factory)
|
351
351
|
end
|
@@ -357,7 +357,7 @@ module R2CORBA
|
|
357
357
|
end
|
358
358
|
|
359
359
|
# RepositoryId id
|
360
|
-
#ret ValueFactory
|
360
|
+
# ret ValueFactory
|
361
361
|
def lookup_value_factory(id)
|
362
362
|
self.orb_().lookup_value_factory(id)
|
363
363
|
end
|
data/lib/corba/common/Object.rb
CHANGED
@@ -27,6 +27,7 @@ module R2CORBA
|
|
27
27
|
def initialize(nobj)
|
28
28
|
@objref_ = nobj
|
29
29
|
end
|
30
|
+
|
30
31
|
def _free_ref
|
31
32
|
self._release
|
32
33
|
end
|
@@ -69,17 +70,17 @@ module R2CORBA
|
|
69
70
|
self
|
70
71
|
end
|
71
72
|
|
72
|
-
#ret InterfaceDef
|
73
|
+
# ret InterfaceDef
|
73
74
|
def _get_interface()
|
74
75
|
raise ::CORBA::NO_IMPLEMENT
|
75
76
|
end
|
76
77
|
|
77
|
-
#ret boolean
|
78
|
+
# ret boolean
|
78
79
|
def _is_nil?()
|
79
80
|
self.objref_.nil? || (self.objref_.respond_to?(:_is_nil) && self.objref_._is_nil)
|
80
81
|
end
|
81
82
|
|
82
|
-
#ret ::CORBA::Object
|
83
|
+
# ret ::CORBA::Object
|
83
84
|
def _duplicate()
|
84
85
|
return nil if self._is_nil?()
|
85
86
|
begin
|
@@ -151,32 +152,32 @@ module R2CORBA
|
|
151
152
|
end
|
152
153
|
end
|
153
154
|
|
154
|
-
#def PolicyType policy_type
|
155
|
+
# def PolicyType policy_type
|
155
156
|
# ret Policy
|
156
157
|
def _get_policy(policy_type)
|
157
158
|
raise ::CORBA::NO_IMPLEMENT
|
158
159
|
end
|
159
160
|
|
160
|
-
#PolicyList policies
|
161
|
-
#SetOverrideType set_add
|
162
|
-
#ret ::CORBA::Object
|
163
|
-
def _set_policy_overrides(policies, set_add
|
161
|
+
# PolicyList policies
|
162
|
+
# SetOverrideType set_add
|
163
|
+
# ret ::CORBA::Object
|
164
|
+
def _set_policy_overrides(policies, set_add)
|
164
165
|
raise ::CORBA::NO_IMPLEMENT
|
165
166
|
end
|
166
167
|
|
167
|
-
#int[] types
|
168
|
-
#ret PolicyList
|
168
|
+
# int[] types
|
169
|
+
# ret PolicyList
|
169
170
|
def _get_policy_overrides(types)
|
170
171
|
raise ::CORBA::NO_IMPLEMENT
|
171
172
|
end
|
172
173
|
|
173
|
-
#PolicyList inconsistent_policies
|
174
|
-
#ret bool
|
174
|
+
# PolicyList inconsistent_policies
|
175
|
+
# ret bool
|
175
176
|
def _validate_connection(inconsistent_policies)
|
176
177
|
raise ::CORBA::NO_IMPLEMENT
|
177
178
|
end
|
178
179
|
|
179
|
-
#ret ::CORBA::Object
|
180
|
+
# ret ::CORBA::Object
|
180
181
|
def _get_component()
|
181
182
|
raise CORBA::INV_OBJREF.new if self._is_nil?()
|
182
183
|
begin
|
data/lib/corba/common/Servant.rb
CHANGED
@@ -17,7 +17,7 @@ module R2CORBA
|
|
17
17
|
class Servant
|
18
18
|
|
19
19
|
module Intf
|
20
|
-
Id =
|
20
|
+
Id = 'IDL:omg.org/CORBA/Object:1.0'.freeze
|
21
21
|
Ids = [ Id ].freeze
|
22
22
|
Operations = {}.freeze
|
23
23
|
end
|
@@ -82,9 +82,9 @@ module R2CORBA
|
|
82
82
|
end
|
83
83
|
self.const_set(:TRUNCATABLE_IDS, vt::TRUNCATABLE_IDS)
|
84
84
|
self.const_set(:VT_TC, vt._tc)
|
85
|
-
|
85
|
+
# @@tc_vt_ = vt._tc
|
86
86
|
def self._tc
|
87
|
-
|
87
|
+
# @@tc_vt_
|
88
88
|
self.const_get(:VT_TC)
|
89
89
|
end
|
90
90
|
include vt::Intf
|
@@ -93,7 +93,7 @@ module R2CORBA
|
|
93
93
|
|
94
94
|
class DynamicImplementation < Servant
|
95
95
|
def invoke(request)
|
96
|
-
if self.class.const_defined?(
|
96
|
+
if self.class.const_defined?('OPTABLE') && self.class::OPTABLE.has_key?(request.operation)
|
97
97
|
request.describe(self.class::OPTABLE[request.operation])
|
98
98
|
return self.__send__(request.operation, *request.arguments) { request }
|
99
99
|
else
|
data/lib/corba/common/Stub.rb
CHANGED
@@ -31,12 +31,12 @@ module R2CORBA
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
Id =
|
34
|
+
Id = 'IDL:omg.org/CORBA/Object:1.0'.freeze
|
35
35
|
Ids = [ Id ].freeze
|
36
36
|
|
37
37
|
protected
|
38
38
|
def init_corba_portable_stub()
|
39
|
-
@ids ||= [
|
39
|
+
@ids ||= ['IDL:omg.org/CORBA/Object:1.0']
|
40
40
|
end
|
41
41
|
|
42
42
|
def _ids; @ids; end
|
@@ -47,7 +47,7 @@ module R2CORBA
|
|
47
47
|
|
48
48
|
public
|
49
49
|
def _narrow!(klass)
|
50
|
-
raise CORBA::OBJECT_NOT_EXIST.new(
|
50
|
+
raise CORBA::OBJECT_NOT_EXIST.new('Nil object narrowed!') if self._is_nil?
|
51
51
|
raise(TypeError, "invalid object narrowed: #{self.class}") unless self.is_a?(CORBA::Stub) && self._is_a?(klass::Id)
|
52
52
|
self.extend klass
|
53
53
|
_append_ids(*klass::Ids)
|
@@ -55,7 +55,7 @@ module R2CORBA
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def _unchecked_narrow!(klass)
|
58
|
-
raise CORBA::OBJECT_NOT_EXIST.new(
|
58
|
+
raise CORBA::OBJECT_NOT_EXIST.new('Nil object narrowed!') if self._is_nil?
|
59
59
|
raise(TypeError, "invalid object narrowed: #{self.class}") unless self.is_a?(CORBA::Stub)
|
60
60
|
self.extend klass
|
61
61
|
_append_ids(*klass::Ids)
|
@@ -67,10 +67,10 @@ module R2CORBA
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def inspect()
|
70
|
-
s =
|
70
|
+
s = ''
|
71
71
|
s << self.class.name.to_s << "\n" <<
|
72
72
|
"type_id: \n" <<
|
73
|
-
|
73
|
+
' ' << @ids.join("\n ") << "\n"
|
74
74
|
end
|
75
75
|
end # Stub
|
76
76
|
end # Portable
|