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

com.github.estuaryoss.agent.configuration.BeanConfig Maven / Gradle / Ivy

There is a newer version: 4.2.6
Show newest version
package com.github.estuaryoss.agent.configuration;

import com.github.estuaryoss.agent.component.About;
import com.github.estuaryoss.agent.model.api.CommandParallel;
import com.github.estuaryoss.agent.service.Fluentd;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfig {
    @Autowired
    private About about;

    @Bean
    public CommandParallel getCommandParallel() {
        return new CommandParallel();
    }

    @Bean
    public Fluentd getFluentdService() {
        return new Fluentd(about);
    }

    @Bean
    public GroupedOpenApi publicApi() {
        return GroupedOpenApi.builder()
                .group("agent")
                .packagesToScan("com.github.estuaryoss.agent.api")
                .build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy