Class: TorqueBox::Kernel Private

Inherits:
Object
  • Object
show all
Defined in:
lib/torquebox/kernel.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

blocks are not allowed on the method named :[]



31
32
33
34
# File 'lib/torquebox/kernel.rb', line 31

def self.[](name)
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  self.lookup(name)
end

.blocksObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



41
42
43
44
# File 'lib/torquebox/kernel.rb', line 41

def self.blocks
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  TorqueBox::ServiceRegistry.blocks
end

.kernel=(kernel) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
27
28
# File 'lib/torquebox/kernel.rb', line 24

def self.kernel=(kernel)
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  # is this even reasonable?
  TorqueBox::ServiceRegistry.service_registry = kernel
end

.lookup(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



36
37
38
39
# File 'lib/torquebox/kernel.rb', line 36

def self.lookup(name, &block)
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  TorqueBox::ServiceRegistry.lookup(name, &block)
end