Class ValidatingMappedConfigurationWrapper<K,V>

java.lang.Object
org.apache.tapestry5.ioc.internal.AbstractConfigurationImpl<V>
org.apache.tapestry5.ioc.internal.ValidatingMappedConfigurationWrapper<K,V>
Type Parameters:
K - the key type
V - the value type
All Implemented Interfaces:
MappedConfiguration<K,V>

A wrapper around a Map that provides the MappedConfiguration interface, and provides two forms of validation for mapped configurations:
  • If either key or value is null, then a warning is logged
  • If the key has previously been stored (by some other ContributionDef, then a warning is logged
When a warning is logged, the key/value pair is not added to the delegate. Handles instantiation of instances.