Class: Hermes::DependenciesContainer
- Inherits:
-
Object
- Object
- Hermes::DependenciesContainer
- Defined in:
- lib/hermes/dependencies_container.rb
Class Method Summary collapse
- .[](name) ⇒ Object
- .clock ⇒ Object
- .config ⇒ Object
- .consumer_builder ⇒ Object
- .database_error_handler ⇒ Object
- .distributed_trace_repository ⇒ Object
- .distributes_tracing_mapper ⇒ Object
- .event_processor ⇒ Object
- .event_producer ⇒ Object
- .global_store ⇒ Object
- .hutch ⇒ Object
- .hutch_config ⇒ Object
- .hutch_logger ⇒ Object
- .instrumenter ⇒ Object
- .logger ⇒ Object
- .logger_params_filter ⇒ Object
- .objects_resolver ⇒ Object
- .producer_error_handler ⇒ Object
- .producer_retryable ⇒ Object
- .publisher ⇒ Object
- .serializer ⇒ Object
Class Method Details
.[](name) ⇒ Object
3 4 5 |
# File 'lib/hermes/dependencies_container.rb', line 3 def self.[](name) public_send(name) end |
.clock ⇒ Object
27 28 29 |
# File 'lib/hermes/dependencies_container.rb', line 27 def self.clock config.clock end |
.config ⇒ Object
11 12 13 |
# File 'lib/hermes/dependencies_container.rb', line 11 def self.config Hermes.configuration end |
.consumer_builder ⇒ Object
88 89 90 |
# File 'lib/hermes/dependencies_container.rb', line 88 def self.consumer_builder Hermes::ConsumerBuilder.new end |
.database_error_handler ⇒ Object
64 65 66 |
# File 'lib/hermes/dependencies_container.rb', line 64 def self.database_error_handler config.database_error_handler end |
.distributed_trace_repository ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/hermes/dependencies_container.rb', line 39 def self.distributed_trace_repository Hermes::DistributedTraceRepository.new( config: config, distributed_trace_database: Hermes::DistributedTrace, distributes_tracing_mapper: distributes_tracing_mapper, database_error_handler: database_error_handler ) end |
.distributes_tracing_mapper ⇒ Object
48 49 50 |
# File 'lib/hermes/dependencies_container.rb', line 48 def self.distributes_tracing_mapper config.distributes_tracing_mapper end |
.event_processor ⇒ Object
56 57 58 |
# File 'lib/hermes/dependencies_container.rb', line 56 def self.event_processor Hermes::EventProcessor end |
.event_producer ⇒ Object
52 53 54 |
# File 'lib/hermes/dependencies_container.rb', line 52 def self.event_producer Hermes::EventProducer end |
.global_store ⇒ Object
60 61 62 |
# File 'lib/hermes/dependencies_container.rb', line 60 def self.global_store RequestStore.store end |
.hutch ⇒ Object
19 20 21 |
# File 'lib/hermes/dependencies_container.rb', line 19 def self.hutch Hutch end |
.hutch_config ⇒ Object
15 16 17 |
# File 'lib/hermes/dependencies_container.rb', line 15 def self.hutch_config config.hutch end |
.hutch_logger ⇒ Object
76 77 78 |
# File 'lib/hermes/dependencies_container.rb', line 76 def self.hutch_logger Hutch.logger end |
.instrumenter ⇒ Object
35 36 37 |
# File 'lib/hermes/dependencies_container.rb', line 35 def self.instrumenter config.instrumenter end |
.logger ⇒ Object
31 32 33 |
# File 'lib/hermes/dependencies_container.rb', line 31 def self.logger config.logger end |
.logger_params_filter ⇒ Object
80 81 82 |
# File 'lib/hermes/dependencies_container.rb', line 80 def self.logger_params_filter config.logger_params_filter end |
.objects_resolver ⇒ Object
84 85 86 |
# File 'lib/hermes/dependencies_container.rb', line 84 def self.objects_resolver Object end |
.producer_error_handler ⇒ Object
68 69 70 |
# File 'lib/hermes/dependencies_container.rb', line 68 def self.producer_error_handler config.producer_error_handler end |
.producer_retryable ⇒ Object
72 73 74 |
# File 'lib/hermes/dependencies_container.rb', line 72 def self.producer_retryable config.producer_retryable end |
.publisher ⇒ Object
23 24 25 |
# File 'lib/hermes/dependencies_container.rb', line 23 def self.publisher Hermes::Publisher.instance end |
.serializer ⇒ Object
7 8 9 |
# File 'lib/hermes/dependencies_container.rb', line 7 def self.serializer Hermes::Serializer.new end |