public Object getPropertyValue ( Object instance , boolean forceDirect ) { try { if ( instance == null ) { return dflt == null || ! isSerializable ( ) ? null : getPropertyType ( ) . getSerializer ( ) . deserialize ( dflt ) ; } if ( ! forceDirect && instance instanceof IPropertyAccessor ) { return ( ( IPropertyAccessor ) instance ) . getPropertyValue ( this ) ; } Method method = PropertyUtil . findGetter ( getter , instance , null ) ; return method == null ? null : method . invoke ( instance ) ; } catch ( Exception e ) { throw MiscUtil . toUnchecked ( e ) ; } }
Returns the property value for a specified object instance .