lib/avromatic.rb in avromatic-0.3.0 vs lib/avromatic.rb in avromatic-0.4.0
- old
+ new
@@ -3,13 +3,17 @@
require 'avro_turf'
require 'avro_turf/messaging'
module Avromatic
class << self
- attr_accessor :schema_registry, :registry_url, :schema_store, :logger, :messaging
+ attr_accessor :schema_registry, :registry_url, :schema_store, :logger,
+ :messaging, :type_registry
+
+ delegate :register_type, to: :type_registry
end
self.logger = Logger.new($stdout)
+ self.type_registry = Avromatic::Model::TypeRegistry.new
def self.configure
yield self
end