public AvroTypeWidenerCustomizerWHook( ObjectValueTypeWidenerFactory factory, EventType eventType) { _factory = factory; _eventType = eventType; }
public void Init(ConfigurationEngineDefaults.AvroSettings avroSettings, EngineImportService engineImportService) { _avroSettings = avroSettings; if (avroSettings.TypeRepresentationMapperClass != null) { _optionalTypeMapper = TypeHelper.Instantiate <TypeRepresentationMapper>( avroSettings.TypeRepresentationMapperClass, engineImportService.GetClassForNameProvider()); } if (avroSettings.ObjectValueTypeWidenerFactoryClass != null) { _optionalWidenerFactory = TypeHelper.Instantiate <ObjectValueTypeWidenerFactory>( avroSettings.ObjectValueTypeWidenerFactoryClass, engineImportService.GetClassForNameProvider()); } }
public void Init( ConfigurationCommonEventTypeMeta.AvroSettingsConfig avroSettings, ImportService importService) { _avroSettings = avroSettings; if (avroSettings.TypeRepresentationMapperClass != null) { _optionalTypeMapper = TypeHelper.Instantiate<TypeRepresentationMapper>( avroSettings.TypeRepresentationMapperClass, importService.ClassForNameProvider); } if (avroSettings.ObjectValueTypeWidenerFactoryClass != null) { _optionalWidenerFactory = TypeHelper.Instantiate<ObjectValueTypeWidenerFactory>( avroSettings.ObjectValueTypeWidenerFactoryClass, importService.ClassForNameProvider); } }