Class: Synapse::Configuration::SimpleRepositoryDefinitionBuilder

Inherits:
LockingRepositoryDefinitionBuilder show all
Defined in:
lib/synapse/configuration/component/repository/simple_repository.rb

Overview

Definition builder used to create simple aggregate repositories

Examples:

The minimum possible effort to build a simple repository

simple_repository :user_repository do
  use_aggregate_type User
end

Instance Attribute Summary

Attributes inherited from DefinitionBuilder

#id

Instance Method Summary collapse

Methods inherited from LockingRepositoryDefinitionBuilder

#use_event_bus, #use_lock_manager, #use_no_locking, #use_optimistic_locking, #use_pessimistic_locking, #use_unit_provider

Methods inherited from DefinitionBuilder

#anonymous, #as_prototype, #as_singleton, build, #build_composite, #build_definition, #clear_tags, #identified_by, #initialize, #register_definition, #replace_tags, #tag, #use_factory, #use_instance

Constructor Details

This class inherits a constructor from Synapse::Configuration::DefinitionBuilder

Instance Method Details

#use_aggregate_type(aggregate_type) ⇒ undefined

Parameters:

  • aggregate_type (Class)

Returns:

  • (undefined)

See Also:



13
14
15
# File 'lib/synapse/configuration/component/repository/simple_repository.rb', line 13

def use_aggregate_type(aggregate_type)
  @aggregate_type = aggregate_type
end