Package io.debezium.converters.custom
Class CustomConverterServiceProvider
java.lang.Object
io.debezium.converters.custom.CustomConverterServiceProvider
- All Implemented Interfaces:
ServiceProvider<CustomConverterRegistry>
public class CustomConverterServiceProvider
extends Object
implements ServiceProvider<CustomConverterRegistry>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final ServiceLoader<CustomConverterFactory> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate io.debezium.spi.converter.CustomConverter<org.apache.kafka.connect.data.SchemaBuilder, io.debezium.spi.converter.ConvertedField> createConverter(io.debezium.config.Configuration configuration, String name) createService(io.debezium.config.Configuration configuration, ServiceRegistry serviceRegistry) Creates or provides a desired service.Get the service class that should be initiated or provided.
-
Field Details
-
CONVERTER_TYPE_SUFFIX
- See Also:
-
converterFactories
-
-
Constructor Details
-
CustomConverterServiceProvider
public CustomConverterServiceProvider()
-
-
Method Details
-
createService
public CustomConverterRegistry createService(io.debezium.config.Configuration configuration, ServiceRegistry serviceRegistry) Description copied from interface:ServiceProviderCreates or provides a desired service.- Specified by:
createServicein interfaceServiceProvider<CustomConverterRegistry>- Parameters:
configuration- the connector configurationserviceRegistry- the service registry- Returns:
- the constructed service
-
getServiceClass
Description copied from interface:ServiceProviderGet the service class that should be initiated or provided. The service class should be unique in the registry.- Specified by:
getServiceClassin interfaceServiceProvider<CustomConverterRegistry>- Returns:
- the service class
-
createConverter
private io.debezium.spi.converter.CustomConverter<org.apache.kafka.connect.data.SchemaBuilder,io.debezium.spi.converter.ConvertedField> createConverter(io.debezium.config.Configuration configuration, String name)
-