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

org.bitbucket.gkutiel.at.ContextMap Maven / Gradle / Ivy

package org.bitbucket.gkutiel.at;

import java.util.HashMap;
import java.util.Map;

public class ContextMap extends Context {
	private final Map ctxs = new HashMap<>();

	public ContextMap(final Context parent) {
		super(parent);
	}

	@Override final public Context get(final String name) {
		final Context ctx = ctxs.get(name);
		if (ctx != null) return ctx;
		return super.get(name);
	}

	@Override final public void set(final String name, final Context context) {
		ctxs.put(name, context);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy