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

io.vlingo.xoom.data.config.DataConfiguration Maven / Gradle / Ivy

// Copyright © 2012-2020 VLINGO LABS. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.

package io.vlingo.xoom.data.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.micronaut.context.annotation.BootstrapContextCompatible;
import io.micronaut.context.annotation.ConfigurationProperties;
import io.micronaut.context.annotation.Context;
import io.micronaut.context.annotation.Primary;
import io.vlingo.symbio.store.DataFormat;

/**
 * The {@link DataConfiguration} class loads application properties from the application.yml file on the
 * classpath of the application.
 */
@ConfigurationProperties(DataConfiguration.PREFIX)
@Primary
@BootstrapContextCompatible
@Context
public class DataConfiguration {
    @SuppressWarnings("unused")
    private static final Logger log = LoggerFactory.getLogger(DataConfiguration.class);
    public static final String PREFIX = "vlingo.symbio";

    private boolean useSSL = false;
    private String databaseType;
    private boolean createTables = false;
    private DataFormat dataFormat = DataFormat.Text;

    public String getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseType(String databaseType) {
        this.databaseType = databaseType;
    }

    public boolean isUseSSL() {
        return useSSL;
    }

    public void setUseSSL(boolean useSSL) {
        this.useSSL = useSSL;
    }

    public boolean isCreateTables() {
        return createTables;
    }

    public void setCreateTables(boolean createTables) {
        this.createTables = createTables;
    }

    public DataFormat getDataFormat() {
        return dataFormat;
    }

    public void setDataFormat(DataFormat dataFormat) {
        this.dataFormat = dataFormat;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy