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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5be3ba463531fcd70b806b0baf8e694488dd99cd
4
- data.tar.gz: c48a7db5f479c4b1da954017dde101af49fece11
3
+ metadata.gz: a2560f2827963d835f788588b54f98b4fc058e67
4
+ data.tar.gz: 4522465723d2b02e073a6e01bd5a73222814aa0c
5
5
  SHA512:
6
- metadata.gz: 38b9b09af388adbb216106dd55dad9b2c1c5ea812be5bc695227ff206c8a7bcf67a2bc279a9e0f175babdeba30517d11520d23e94c0e40e4c7058a9715e3cc19
7
- data.tar.gz: e8362d10b0bfe9a98bda8eca4f755608bda0ffeb88e0a5aa7c24ddccb2f60fdcb8e9ad05bf847568a5dea223b55e7354c6781001b5a3b86475db0223becde294
6
+ metadata.gz: 6185c0958ee3770731507c5dd8f90f611cff7523c945712e9abc7448b7cfc00b64e20d6d340275121f18f3d48c340cfecb9b3879b9d2fd4d441d1bad8b4a6ed9
7
+ data.tar.gz: 5c20c34c9bdf9416b7948144d1182dd628cc7239230d037b6af5a0250561fdc906a8038e05fc8af5854580cf135788e6c3ab7ec5127a3626b76262e4f879a206
Binary file
@@ -1,6 +1,6 @@
1
1
  module TorqueboxCore
2
- VERSION = '3.1.1'
3
- MAVEN_VERSION = '3.1.1'
2
+ VERSION = '3.1.2'
3
+ MAVEN_VERSION = '3.1.2'
4
4
  end
5
5
  begin
6
6
  require 'java'
@@ -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, 45)
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
 
@@ -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.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: 2014-06-25 00:00:00.000000000 Z
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/msc.rb
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
- - spec/scheduled_job_spec.rb
83
- - spec/injectors_spec.rb
84
- - spec/logger_spec.rb
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/kernel_spec.rb
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/scheduled_job_spec.rb
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/kernel_spec.rb
116
+ - spec/logger_spec.rb
117
+ - spec/scheduled_job_spec.rb
118
+ - spec/injectors_spec.rb