Class: Euston::RabbitMq::HandlerFinder
- Inherits:
-
Object
- Object
- Euston::RabbitMq::HandlerFinder
- Defined in:
- lib/euston-rabbitmq/reflection/handler_finder.rb
Instance Attribute Summary collapse
-
#namespaces ⇒ Object
readonly
Returns the value of attribute namespaces.
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(required_mixins = [], logger = Euston::NullLogger.instance) ⇒ HandlerFinder
constructor
A new instance of HandlerFinder.
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
#namespaces ⇒ Object (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
#find ⇒ Object
13 14 15 16 |
# File 'lib/euston-rabbitmq/reflection/handler_finder.rb', line 13 def find filter_namespaces_list map_namespaces_to_references end |