All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.reactivecommons.async.kafka.config.props.AsyncKafkaPropsDomain Maven / Gradle / Ivy

There is a newer version: 5.0.3-alpha
Show newest version
package org.reactivecommons.async.kafka.config.props;

import lombok.Getter;
import lombok.Setter;
import org.reactivecommons.async.kafka.config.KafkaProperties;
import org.reactivecommons.async.starter.GenericAsyncPropsDomain;
import org.springframework.beans.factory.annotation.Value;

import java.lang.reflect.Constructor;

@Getter
@Setter
public class AsyncKafkaPropsDomain extends GenericAsyncPropsDomain {

    public AsyncKafkaPropsDomain(@Value("${spring.application.name}") String defaultAppName,
                                 KafkaProperties defaultKafkaProperties,
                                 AsyncKafkaPropsDomainProperties configured,
                                 KafkaSecretFiller kafkaSecretFiller) {
        super(defaultAppName, defaultKafkaProperties, configured, kafkaSecretFiller, AsyncKafkaProps.class,
                KafkaProperties.class);
    }

    @SuppressWarnings("unchecked")
    public static AsyncPropsDomainBuilder builder() {
        return GenericAsyncPropsDomain.builder(AsyncKafkaProps.class,
                KafkaProperties.class,
                AsyncKafkaPropsDomainProperties.class,
                (Constructor) AsyncKafkaPropsDomain.class.getDeclaredConstructors()[0]);
    }

    public interface KafkaSecretFiller extends GenericAsyncPropsDomain.SecretFiller {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy