ma.glasnost.orika.test.extensibility
Class PropertyResolverExtensibilityTestCase.ElementPropertyResolver

java.lang.Object
  extended by ma.glasnost.orika.property.PropertyResolver
      extended by ma.glasnost.orika.property.IntrospectorPropertyResolver
          extended by ma.glasnost.orika.test.extensibility.PropertyResolverExtensibilityTestCase.ElementPropertyResolver
All Implemented Interfaces:
PropertyResolverStrategy
Enclosing class:
PropertyResolverExtensibilityTestCase

public static class PropertyResolverExtensibilityTestCase.ElementPropertyResolver
extends IntrospectorPropertyResolver

For my next trick, this is a custom Property Resolver which automatically attempts a dynamic definition of type Element (after normal resolution has failed)

Author:
matt.deboer@gmail.com

Field Summary
 
Fields inherited from class ma.glasnost.orika.property.PropertyResolver
ELEMENT_PROPERT_PREFIX, ELEMENT_PROPERT_SUFFIX
 
Constructor Summary
PropertyResolverExtensibilityTestCase.ElementPropertyResolver()
           
 
Method Summary
protected  Property getProperty(Type type, String expr, boolean isNestedLookup, Property owner)
           
 
Methods inherited from class ma.glasnost.orika.property.IntrospectorPropertyResolver
collectProperties
 
Methods inherited from class ma.glasnost.orika.property.PropertyResolver
capitalize, collectPublicFieldProperties, getElementProperty, getElementProperty, getIndividualElementProperty, getNestedProperty, getNestedProperty, getProperties, getProperty, getProperty, isElementPropertyExpression, isIndividualElementExpression, isInlinePropertyExpression, isNestedPropertyExpression, processProperty, resolveInlineProperty, resolvePropertyType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyResolverExtensibilityTestCase.ElementPropertyResolver

public PropertyResolverExtensibilityTestCase.ElementPropertyResolver()
Method Detail

getProperty

protected Property getProperty(Type type,
                               String expr,
                               boolean isNestedLookup,
                               Property owner)
                        throws MappingException
Overrides:
getProperty in class PropertyResolver
Throws:
MappingException


Copyright © 2012 Glasnost. All Rights Reserved.