com.astamuse.asta4d.util.UnmodifiableContextMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asta4d-core Show documentation
Show all versions of asta4d-core Show documentation
core functionalities of asta4d framework, including template and snippt implemention
package com.astamuse.asta4d.util;
import com.astamuse.asta4d.ContextMap;
public class UnmodifiableContextMap implements ContextMap {
private ContextMap map;
public UnmodifiableContextMap(ContextMap map) {
super();
this.map = map;
}
public void put(String key, Object data) {
throw new UnsupportedOperationException("Put operation is forbidden on this class:" + this.getClass().getName());
}
public T get(String key) {
return map.get(key);
}
public ContextMap createClone() {
return this;
}
}