Class: Hermes::DependenciesContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/hermes/dependencies_container.rb

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



3
4
5
# File 'lib/hermes/dependencies_container.rb', line 3

def self.[](name)
  public_send(name)
end

.clockObject



27
28
29
# File 'lib/hermes/dependencies_container.rb', line 27

def self.clock
  config.clock
end

.configObject



11
12
13
# File 'lib/hermes/dependencies_container.rb', line 11

def self.config
  Hermes.configuration
end

.consumer_builderObject



88
89
90
# File 'lib/hermes/dependencies_container.rb', line 88

def self.consumer_builder
  Hermes::ConsumerBuilder.new
end

.database_error_handlerObject



64
65
66
# File 'lib/hermes/dependencies_container.rb', line 64

def self.database_error_handler
  config.database_error_handler
end

.distributed_trace_repositoryObject



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_mapperObject



48
49
50
# File 'lib/hermes/dependencies_container.rb', line 48

def self.distributes_tracing_mapper
  config.distributes_tracing_mapper
end

.event_processorObject



56
57
58
# File 'lib/hermes/dependencies_container.rb', line 56

def self.event_processor
  Hermes::EventProcessor
end

.event_producerObject



52
53
54
# File 'lib/hermes/dependencies_container.rb', line 52

def self.event_producer
  Hermes::EventProducer
end

.global_storeObject



60
61
62
# File 'lib/hermes/dependencies_container.rb', line 60

def self.global_store
  RequestStore.store
end

.hutchObject



19
20
21
# File 'lib/hermes/dependencies_container.rb', line 19

def self.hutch
  Hutch
end

.hutch_configObject



15
16
17
# File 'lib/hermes/dependencies_container.rb', line 15

def self.hutch_config
  config.hutch
end

.hutch_loggerObject



76
77
78
# File 'lib/hermes/dependencies_container.rb', line 76

def self.hutch_logger
  Hutch.logger
end

.instrumenterObject



35
36
37
# File 'lib/hermes/dependencies_container.rb', line 35

def self.instrumenter
  config.instrumenter
end

.loggerObject



31
32
33
# File 'lib/hermes/dependencies_container.rb', line 31

def self.logger
  config.logger
end

.logger_params_filterObject



80
81
82
# File 'lib/hermes/dependencies_container.rb', line 80

def self.logger_params_filter
  config.logger_params_filter
end

.objects_resolverObject



84
85
86
# File 'lib/hermes/dependencies_container.rb', line 84

def self.objects_resolver
  Object
end

.producer_error_handlerObject



68
69
70
# File 'lib/hermes/dependencies_container.rb', line 68

def self.producer_error_handler
  config.producer_error_handler
end

.producer_retryableObject



72
73
74
# File 'lib/hermes/dependencies_container.rb', line 72

def self.producer_retryable
  config.producer_retryable
end

.publisherObject



23
24
25
# File 'lib/hermes/dependencies_container.rb', line 23

def self.publisher
  Hermes::Publisher.instance
end

.serializerObject



7
8
9
# File 'lib/hermes/dependencies_container.rb', line 7

def self.serializer
  Hermes::Serializer.new
end