module AppDynamics::Backend

Categorizes an Exit Call Backend and adds identifiying information.

Constants

Any

Public Class Methods

build(*args) click to toggle source
# File lib/app_dynamics/backend.rb, line 76
def self.build(*args)
  if klass = find(*args)
    klass.new(*args)
  end
end
find(cat, title, desc, meta) click to toggle source
# File lib/app_dynamics/backend.rb, line 70
def self.find(cat, title, desc, meta)
  hash = { category: cat, title: title, description: desc, meta: meta }
  _, klass = @registry.find{|k,v| k === hash }
  klass
end
register(klass, matcher) click to toggle source
# File lib/app_dynamics/backend.rb, line 62
def self.register(klass, matcher)
  (@registry ||= {})[matcher] = klass
end
registry() click to toggle source
# File lib/app_dynamics/backend.rb, line 66
def self.registry
  @registry
end