Class: Euston::RabbitMq::HandlerFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/euston-rabbitmq/reflection/handler_finder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(required_mixins = [], logger = Euston::NullLogger.instance) ⇒ HandlerFinder

Returns a new instance of HandlerFinder.



4
5
6
7
8
9
# File 'lib/euston-rabbitmq/reflection/handler_finder.rb', line 4

def initialize required_mixins = [], logger = Euston::NullLogger.instance
  @namespaces = []
  @constant_loader = ConstantLoader.new.when(:hit => method(:store_found_constant), :miss => method(:log_failed_lookup))
  @required_mixins = required_mixins
  @log = logger
end

Instance Attribute Details

#namespacesObject (readonly)

Returns the value of attribute namespaces.



11
12
13
# File 'lib/euston-rabbitmq/reflection/handler_finder.rb', line 11

def namespaces
  @namespaces
end

Instance Method Details

#findObject



13
14
15
16
# File 'lib/euston-rabbitmq/reflection/handler_finder.rb', line 13

def find
  filter_namespaces_list
  map_namespaces_to_references
end