Setting.java 744 Bytes
package com.bsth.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Setting {


    private static boolean whiteipEnabled;

    private static boolean authorityEnabled;

    public static boolean isWhiteipEnabled() {
        return whiteipEnabled;
    }

    @Value("${enabled.whiteip}")
    public void setWhiteipEnabled(boolean whiteipEnabled) {
        Setting.whiteipEnabled = whiteipEnabled;
    }

    public static boolean isAuthorityEnabled() {
        return authorityEnabled;
    }

    @Value("${enabled.authority}")
    public void setAuthorityEnabled(boolean authorityEnabled) {
        Setting.authorityEnabled = authorityEnabled;
    }
}