com.netflix.archaius.api.Config Maven / Gradle / Ivy
/**
* Copyright 2015 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.netflix.archaius.api;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
/**
* Core API for reading a configuration. The API is read only.
*/
public interface Config extends PropertySource {
public interface Visitor {
T visitKey(String key, Object value);
}
/**
* Register a listener that will receive a call for each property that is added, removed
* or updated. It is recommended that the callbacks be invoked only after a full refresh
* of the properties to ensure they are in a consistent state.
*
* @param listener
*/
void addListener(ConfigListener listener);
/**
* Remove a previously registered listener.
* @param listener
*/
void removeListener(ConfigListener listener);
/**
* Return the raw, uninterpolated, object associated with a key.
* @param key
*/
Object getRawProperty(String key);
default Optional © 2015 - 2025 Weber Informatics LLC | Privacy Policy