Class: Sequent::Configuration
- Inherits:
-
Object
- Object
- Sequent::Configuration
- Defined in:
- lib/sequent/configuration.rb
Instance Attribute Summary collapse
-
#aggregate_repository ⇒ Object
readonly
Returns the value of attribute aggregate_repository.
-
#command_filters ⇒ Object
Returns the value of attribute command_filters.
-
#command_handlers ⇒ Object
Returns the value of attribute command_handlers.
-
#command_service ⇒ Object
Returns the value of attribute command_service.
-
#event_handlers ⇒ Object
Returns the value of attribute event_handlers.
-
#event_record_class ⇒ Object
Returns the value of attribute event_record_class.
-
#event_store ⇒ Object
Returns the value of attribute event_store.
-
#snapshot_event_class ⇒ Object
Returns the value of attribute snapshot_event_class.
-
#stream_record_class ⇒ Object
Returns the value of attribute stream_record_class.
-
#transaction_provider ⇒ Object
Returns the value of attribute transaction_provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/sequent/configuration.rb', line 30 def initialize self.command_handlers = [] self.command_filters = [] self.event_handlers = [] self.event_store = Sequent::Core::EventStore.new(self) self.command_service = Sequent::Core::CommandService.new(self) self.event_record_class = Sequent::Core::EventRecord self.stream_record_class = Sequent::Core::StreamRecord self.snapshot_event_class = Sequent::Core::SnapshotEvent self.transaction_provider = Sequent::Core::Transactions::NoTransactions.new end |
Instance Attribute Details
#aggregate_repository ⇒ Object (readonly)
Returns the value of attribute aggregate_repository.
8 9 10 |
# File 'lib/sequent/configuration.rb', line 8 def aggregate_repository @aggregate_repository end |
#command_filters ⇒ Object
Returns the value of attribute command_filters.
17 18 19 |
# File 'lib/sequent/configuration.rb', line 17 def command_filters @command_filters end |
#command_handlers ⇒ Object
Returns the value of attribute command_handlers.
17 18 19 |
# File 'lib/sequent/configuration.rb', line 17 def command_handlers @command_handlers end |
#command_service ⇒ Object
Returns the value of attribute command_service.
10 11 12 |
# File 'lib/sequent/configuration.rb', line 10 def command_service @command_service end |
#event_handlers ⇒ Object
Returns the value of attribute event_handlers.
20 21 22 |
# File 'lib/sequent/configuration.rb', line 20 def event_handlers @event_handlers end |
#event_record_class ⇒ Object
Returns the value of attribute event_record_class.
10 11 12 |
# File 'lib/sequent/configuration.rb', line 10 def event_record_class @event_record_class end |
#event_store ⇒ Object
Returns the value of attribute event_store.
10 11 12 |
# File 'lib/sequent/configuration.rb', line 10 def event_store @event_store end |
#snapshot_event_class ⇒ Object
Returns the value of attribute snapshot_event_class.
10 11 12 |
# File 'lib/sequent/configuration.rb', line 10 def snapshot_event_class @snapshot_event_class end |
#stream_record_class ⇒ Object
Returns the value of attribute stream_record_class.
10 11 12 |
# File 'lib/sequent/configuration.rb', line 10 def stream_record_class @stream_record_class end |
#transaction_provider ⇒ Object
Returns the value of attribute transaction_provider.
10 11 12 |
# File 'lib/sequent/configuration.rb', line 10 def transaction_provider @transaction_provider end |
Class Method Details
.instance ⇒ Object
22 23 24 |
# File 'lib/sequent/configuration.rb', line 22 def self.instance @instance ||= new end |
.reset ⇒ Object
26 27 28 |
# File 'lib/sequent/configuration.rb', line 26 def self.reset @instance = new end |