001 package biz.hammurapi.config; 002 003 /** 004 * Context which entries can be modified. 005 * @author Pavel 006 * 007 */ 008 public interface MutableContext extends Context { 009 010 /** 011 * Sets context value. 012 * @param name 013 * @param value 014 */ 015 void set(String name, Object value); 016 017 /** 018 * Removes context value. 019 * @param name 020 * @return true if operation was successful. In some cases 021 * removal of name/value pair may not be supported (e.g. chained contexts). 022 */ 023 boolean remove(String name); 024 }