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

io.github.firefang.power.permission.PermissionProperties Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package io.github.firefang.power.permission;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Starter配置信息
 * 
 * @author xinufo
 *
 */
@ConfigurationProperties(prefix = PermissionProperties.PREFIX)
public class PermissionProperties {
    public static final String PREFIX = "power.permission";
    public static final String SWITCH = PREFIX + ".enabled";
    public static final String SERIALIZE_SWITCH = PREFIX + ".serialize";

    private boolean enabled;
    private boolean serialize;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isSerialize() {
        return serialize;
    }

    public void setSerialize(boolean serialize) {
        this.serialize = serialize;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy