This topic has not yet been written. The content below is from the topic description.
Example 7.2, “PortsConfig� shows how the PortsConfig bean uses Binding bean to get its values via the getPort method invocation. Example 7.2. PortsConfig public class PortBindingManager { private Map bindings; public PortBindingManager(Map bindings) { this.bindings = bindings; } public Integer getPort(String key) { return getPort(key, null); } public Integer getPort(String key, Integer defaultValue) { if (bindings == null) return defaultValue; Integer value = bindings.get(key); if (value != null) return value; if (defaultValue != null) bindings.put(key, defaultValue); return defaultValue; } }