torquebox-core 3.1.1-java → 3.1.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/torquebox-core.jar +0 -0
- data/lib/torquebox-core.rb +2 -2
- data/lib/torquebox/injectors.rb +5 -4
- data/lib/torquebox/logger.rb +1 -2
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2560f2827963d835f788588b54f98b4fc058e67
|
4
|
+
data.tar.gz: 4522465723d2b02e073a6e01bd5a73222814aa0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6185c0958ee3770731507c5dd8f90f611cff7523c945712e9abc7448b7cfc00b64e20d6d340275121f18f3d48c340cfecb9b3879b9d2fd4d441d1bad8b4a6ed9
|
7
|
+
data.tar.gz: 5c20c34c9bdf9416b7948144d1182dd628cc7239230d037b6af5a0250561fdc906a8038e05fc8af5854580cf135788e6c3ab7ec5127a3626b76262e4f879a206
|
data/lib/torquebox-core.jar
CHANGED
Binary file
|
data/lib/torquebox-core.rb
CHANGED
data/lib/torquebox/injectors.rb
CHANGED
@@ -24,7 +24,8 @@ module TorqueBox
|
|
24
24
|
class InjectionError < StandardError
|
25
25
|
end
|
26
26
|
|
27
|
-
def self.fetch(something)
|
27
|
+
def self.fetch(something,options={})
|
28
|
+
timeout = options[:timeout] || 45
|
28
29
|
unless TorqueBox::Registry.has_key?(something.to_s)
|
29
30
|
handler_registry = TorqueBox::ServiceRegistry['torquebox.core.injection.injectable-handler-registry']
|
30
31
|
# handler_registry should only be nil when running outside of
|
@@ -38,7 +39,7 @@ module TorqueBox
|
|
38
39
|
TorqueBox::Registry['deployment-unit'])
|
39
40
|
service = TorqueBox::ServiceRegistry.registry.getService(service_name)
|
40
41
|
raise InjectionError.new("Service not found for injection - #{something}") if service.nil?
|
41
|
-
state = TorqueBox::MSC.wait_for_service_to_start(service,
|
42
|
+
state = TorqueBox::MSC.wait_for_service_to_start(service, timeout)
|
42
43
|
raise InjectionError.new("Injected service failed to start - #{service_name}") if state != 'UP'
|
43
44
|
value = service.value
|
44
45
|
raise InjectionError.new("Injected service had no value - #{service_name}") if value.nil?
|
@@ -55,8 +56,8 @@ module TorqueBox
|
|
55
56
|
|
56
57
|
module Injectors
|
57
58
|
|
58
|
-
def fetch(something)
|
59
|
-
TorqueBox.fetch(something)
|
59
|
+
def fetch(something,options={})
|
60
|
+
TorqueBox.fetch(something,options)
|
60
61
|
end
|
61
62
|
alias_method :__inject__, :fetch
|
62
63
|
|
data/lib/torquebox/logger.rb
CHANGED
@@ -54,7 +54,6 @@ module TorqueBox
|
|
54
54
|
org.jboss.logging::Logger
|
55
55
|
rescue ::NameError
|
56
56
|
Logger = FallbackLogger
|
57
|
-
return
|
58
57
|
end
|
59
58
|
|
60
59
|
class Logger
|
@@ -134,5 +133,5 @@ module TorqueBox
|
|
134
133
|
[ args[0] || (block && block.call) ].compact
|
135
134
|
end
|
136
135
|
|
137
|
-
end
|
136
|
+
end unless defined?(TorqueBox::Logger)
|
138
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquebox-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- The TorqueBox Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: edn
|
@@ -63,28 +63,28 @@ files:
|
|
63
63
|
- lib/torquebox-core.jar
|
64
64
|
- lib/torquebox-core.rb
|
65
65
|
- lib/gem_hook.rb
|
66
|
-
- lib/torquebox/component_manager.rb
|
67
|
-
- lib/torquebox/kernel.rb
|
68
|
-
- lib/torquebox/core.rb
|
69
|
-
- lib/torquebox/service_registry.rb
|
70
|
-
- lib/torquebox/scheduled_job.rb
|
71
|
-
- lib/torquebox/injectors.rb
|
72
|
-
- lib/torquebox/logger.rb
|
73
66
|
- lib/torquebox/registry.rb
|
74
67
|
- lib/torquebox/codecs.rb
|
75
|
-
- lib/torquebox/
|
68
|
+
- lib/torquebox/scheduled_job.rb
|
76
69
|
- lib/torquebox/service.rb
|
70
|
+
- lib/torquebox/service_registry.rb
|
71
|
+
- lib/torquebox/logger.rb
|
72
|
+
- lib/torquebox/component_manager.rb
|
73
|
+
- lib/torquebox/core.rb
|
74
|
+
- lib/torquebox/msc.rb
|
75
|
+
- lib/torquebox/injectors.rb
|
76
|
+
- lib/torquebox/kernel.rb
|
77
77
|
- lib/torquebox/codecs/marshal_base64.rb
|
78
|
-
- lib/torquebox/codecs/edn.rb
|
79
78
|
- lib/torquebox/codecs/marshal.rb
|
80
|
-
- lib/torquebox/codecs/marshal_smart.rb
|
81
79
|
- lib/torquebox/codecs/json.rb
|
82
|
-
-
|
83
|
-
-
|
84
|
-
- spec/
|
80
|
+
- lib/torquebox/codecs/edn.rb
|
81
|
+
- lib/torquebox/codecs/marshal_smart.rb
|
82
|
+
- spec/kernel_spec.rb
|
85
83
|
- spec/service_registry_spec.rb
|
86
84
|
- spec/codecs_spec.rb
|
87
|
-
- spec/
|
85
|
+
- spec/logger_spec.rb
|
86
|
+
- spec/scheduled_job_spec.rb
|
87
|
+
- spec/injectors_spec.rb
|
88
88
|
homepage: http://torquebox.org/
|
89
89
|
licenses:
|
90
90
|
- Public Domain
|
@@ -110,9 +110,9 @@ signing_key:
|
|
110
110
|
specification_version: 4
|
111
111
|
summary: TorqueBox Core Gem
|
112
112
|
test_files:
|
113
|
-
- spec/
|
114
|
-
- spec/injectors_spec.rb
|
115
|
-
- spec/logger_spec.rb
|
113
|
+
- spec/kernel_spec.rb
|
116
114
|
- spec/service_registry_spec.rb
|
117
115
|
- spec/codecs_spec.rb
|
118
|
-
- spec/
|
116
|
+
- spec/logger_spec.rb
|
117
|
+
- spec/scheduled_job_spec.rb
|
118
|
+
- spec/injectors_spec.rb
|