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

org.zodiac.plugin.realize.UnRegistryValidator Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.plugin.realize;

/**
 * 卸载校验器。
 * 
 */
public interface UnRegistryValidator {

    /**
     * 校验是否可卸载
     * 
     * @return 校验结果
     * @throws Exception
     *             校验异常. 校验异常后, 该插件默认不可卸载
     */
    Result verify() throws Exception;

    class Result {
        /**
         * 是否可卸载
         */
        private boolean verify;

        /**
         * 不可卸载时的提示内容
         */
        private String message;

        public Result(boolean verify) {
            this.verify = verify;
        }

        public Result(boolean verify, String message) {
            this.verify = verify;
            this.message = message;
        }

        public boolean isVerify() {
            return verify;
        }

        public String getMessage() {
            return message;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy