rtm-javatmapi 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,40 +0,0 @@
1
- # Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
2
- # License: Apache License, Version 2.0
3
-
4
- module Superiseable
5
- module WithJavaImplementations
6
-
7
- class CJavaImplementations
8
- def initialize
9
- @java_implementations = Hash.new{|h,k| h[k] = []}
10
- end
11
-
12
- def [](interface)
13
- @java_implementations[interface]
14
- end
15
-
16
- def add(interface,impl)
17
- begin
18
- begin
19
- impl
20
- rescue
21
- puts "Error in java_implementations.rb: #{interface}: #{impl}"
22
- end
23
- @java_implementations[interface] << impl
24
- rescue
25
- puts "Something went wrong in java_implementations.rb"
26
- end
27
- end
28
- end
29
-
30
- JavaImplementations = CJavaImplementations.new
31
- end
32
- end
33
-
34
- module Java::OrgTmapiCore::Construct
35
- include Superiseable::WithJavaImplementations
36
- end
37
-
38
- module Java::OrgTmapiCore::Locator
39
- include Superiseable::WithJavaImplementations
40
- end