src/main/java/com/ircnet/service/clis/ClisConfiguration.java
/**
     * Creates a new IRC service.
     *
     * @return An IRC service
     */
Creates a new IRC service.
@return An IRC service
Creates a new IRC service . @return An IRC service
@Bean
    public IRCServiceTask ircServiceTask() {
        IRCServerModel ircServerModel = new IRCServerModel();
        ircServerModel.setHostname(ircServerHost);
        ircServerModel.setPort(ircServerPort);
        if (!StringUtils.isEmpty(ircServerProtocol)) {
            ircServerModel.setProtocol(ServerModel.Protocol.valueOf(ircServerProtocol.toUpperCase()));
        }
        ServiceConfigurationModel serviceConfiguration = new ServiceConfigurationModel();
        serviceConfiguration.setServiceName(serviceName);
        serviceConfiguration.setDistributionMask(serviceDistributionMask);
        serviceConfiguration.setServiceType(serviceType);
        serviceConfiguration.setDataFlags(serviceDataFlags);
        serviceConfiguration.setBurstFlags(serviceBurstFlags);
        serviceConfiguration.setInfo(serviceInfo);
        serviceConfiguration.setPassword(servicePassword);
        serviceConfiguration.setIrcServers(Collections.singletonList(ircServerModel));
        return new IRCServiceTask(serviceConfiguration);
    }
@ Bean public IRCServiceTask ircServiceTask ( ) { IRCServerModel ircServerModel = new IRCServerModel ( ) ; ircServerModel . setHostname ( ircServerHost ) ; ircServerModel . setPort ( ircServerPort ) ; if ( ! StringUtils . isEmpty ( ircServerProtocol ) ) { ircServerModel . setProtocol ( ServerModel . Protocol . valueOf ( ircServerProtocol . toUpperCase ( ) ) ) ; } ServiceConfigurationModel serviceConfiguration = new ServiceConfigurationModel ( ) ; serviceConfiguration . setServiceName ( serviceName ) ; serviceConfiguration . setDistributionMask ( serviceDistributionMask ) ; serviceConfiguration . setServiceType ( serviceType ) ; serviceConfiguration . setDataFlags ( serviceDataFlags ) ; serviceConfiguration . setBurstFlags ( serviceBurstFlags ) ; serviceConfiguration . setInfo ( serviceInfo ) ; serviceConfiguration . setPassword ( servicePassword ) ; serviceConfiguration . setIrcServers ( Collections . singletonList ( ircServerModel ) ) ; return new IRCServiceTask ( serviceConfiguration ) ; }
Creates a new IRC service.
Creates a new IRC service .