Package com.codiform.moo

Examples of com.codiform.moo.MissingSourcePropertyValueException


      Field field = getField( source, currentClass );
      if( field != null )
        return getValue( field, source );
      currentClass = currentClass.getSuperclass();
    }
    throw new MissingSourcePropertyValueException( propertyName, source.getClass() );
  }
View Full Code Here


  private Object getValue( Field field, Object source ) {
    field.setAccessible( true );
    try {
      return field.get( source );
    } catch ( IllegalArgumentException cause ) {
      throw new MissingSourcePropertyValueException( propertyName, source.getClass(), cause );
    } catch ( IllegalAccessException cause ) {
      throw new MissingSourcePropertyValueException( propertyName, source.getClass(), cause );
    }
  }
View Full Code Here

  private Object getValue( Method getter, Object source ) {
    getter.setAccessible( true );
    try {
      return getter.invoke( source );
    } catch ( IllegalArgumentException cause ) {
      throw new MissingSourcePropertyValueException( propertyName, source.getClass(), cause );
    } catch ( IllegalAccessException cause ) {
      throw new MissingSourcePropertyValueException( propertyName, source.getClass(), cause );
    } catch ( InvocationTargetException cause ) {
      throw new MissingSourcePropertyValueException( propertyName, source.getClass(), cause );
    }
  }
View Full Code Here

  @Override
  public Object getValue( Object source ) {
    try {
      return MVEL.executeExpression( compiledExpression, source );
    } catch ( PropertyAccessException exception ) {
      throw new MissingSourcePropertyValueException( expression, source.getClass(), exception );
    }
  }
View Full Code Here

  @Override
  public Object getValue( Object source, Map<String, Object> variables ) {
    try {
      return MVEL.executeExpression( compiledExpression, source, variables );
    } catch ( PropertyAccessException exception ) {
      throw new MissingSourcePropertyValueException( expression, source.getClass(), exception );
    }
  }
View Full Code Here

TOP

Related Classes of com.codiform.moo.MissingSourcePropertyValueException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.