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

com.liumapp.signature.pdf.config.Config Maven / Gradle / Ivy

The newest version!
package com.liumapp.signature.pdf.config;

import com.liumapp.DNSQueen.worker.process.WokerEar;
import com.liumapp.DNSQueen.worker.tcp.TCPSocketMonitor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by liumapp on 9/28/17.
 * E-mail:[email protected]
 * home-page:http://www.liumapp.com
 */
@Configuration
public class Config {

    @Bean
    @ConfigurationProperties(prefix = "liumapp.signature.pdf")
    public Params params () {
        return new Params();
    }

    @Bean
    public TCPSocketMonitor tcpSocketMonitor (Params params) {
        Integer port = params.getPort();
        TCPSocketMonitor tcpSocketMonitor = new TCPSocketMonitor(port);
        return tcpSocketMonitor;
    }

    @Bean
    public WokerEar wokerEar (Params params) {
        Integer startDelay = params.getStartDelay();
        WokerEar wokerEar = new WokerEar();
        wokerEar.setStartDelay(startDelay);
        return wokerEar;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy