![JAR search and dependency download from the Maven repository](/logo.png)
com.liumapp.certificate.generator.config.Config Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of certificate-generator Show documentation
Show all versions of certificate-generator Show documentation
Generating RSA certificate for personal.
package com.liumapp.certificate.generator.config;
import com.liumapp.DNSQueen.worker.process.WokerEar;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.liumapp.DNSQueen.worker.tcp.TCPSocketMonitor;
/**
* 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.certificate.generator")
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 - 2025 Weber Informatics LLC | Privacy Policy