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

apollo.util.ConfigFileChangePublisher Maven / Gradle / Ivy

The newest version!
package apollo.util;

import apollo.ConfigChangeListener;
import apollo.ConfigFileChangeListener;
import apollo.model.ConfigFileChangeEvent;

/**
 * @Author: xiongchengwei
 * @Date: 2019/12/3 下午1:35
 */
public interface ConfigFileChangePublisher {

    void fireConfigChange(final ConfigFileChangeEvent changeEvent);


    /**
     * Add change listener to this config file instance.
     *
     * @param listener the config file change listener
     */
    void addChangeListener(ConfigFileChangeListener listener);

    /**
     * Remove the change listener
     *
     * @param listener the specific config change listener to remove
     * @return true if the specific config change listener is found and removed
     */
    public boolean removeChangeListener(ConfigChangeListener listener);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy