net.sf.navel.beans
Class DefaultNestedResolver

java.lang.Object
  extended by net.sf.navel.beans.DefaultNestedResolver
All Implemented Interfaces:
NestedResolver

public class DefaultNestedResolver
extends java.lang.Object
implements NestedResolver

The default implementation just adds the provided initial state directly to storage, triggering property type and name validation.

Author:
cmdln

Constructor Summary
DefaultNestedResolver()
           
 
Method Summary
 void resolve(java.lang.Object bean, java.util.Map<java.lang.String,java.lang.Object> initialValues)
          If any additional processing or mapping needs to be performed before the values are set into a new, nested bean's state, implement here and register via the ProxyFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNestedResolver

public DefaultNestedResolver()
Method Detail

resolve

public void resolve(java.lang.Object bean,
                    java.util.Map<java.lang.String,java.lang.Object> initialValues)
Description copied from interface: NestedResolver
If any additional processing or mapping needs to be performed before the values are set into a new, nested bean's state, implement here and register via the ProxyFactory.

Specified by:
resolve in interface NestedResolver
Parameters:
bean - A navel bean, may be new and empty or may be partially populated, depending on the exact dot notation keys in the initialValues map and other factors, so should be careful about inadvertently clobbering existing state.
initialValues - The appropriate values derived for the bean argument, which may be filtered or changed as appropriate to keep property validation from throwing an exception.
See Also:
NestedResolver.resolve(java.lang.Object, java.util.Map)