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

com.github.zhengframework.configuration.source.EmptyConfigurationSource Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.github.zhengframework.configuration.source;

import com.github.zhengframework.configuration.environment.Environment;
import java.util.Collections;
import java.util.Map;

public class EmptyConfigurationSource implements ConfigurationSource {

  private final Map map = Collections.emptyMap();

  @Override
  public void init() {

  }

  @Override
  public void addListener(ConfigurationSourceListener listener) {

  }

  @Override
  public void removeListener(ConfigurationSourceListener listener) {

  }

  @Override
  public Map getConfiguration(Environment environment) {
    return map;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy