Package org.jspresso.framework.model.component

Examples of org.jspresso.framework.model.component.ComponentException


  protected Object retrievePropertyValue(String propertyName) {
    try {
      return getAccessorFactory().createPropertyAccessor(propertyName,
          getComponentContract()).getValue(delegate);
    } catch (IllegalAccessException ex) {
      throw new ComponentException(ex);
    } catch (InvocationTargetException ex) {
      if (ex.getCause() instanceof RuntimeException) {
        throw (RuntimeException) ex.getCause();
      }
      throw new ComponentException(ex.getCause());
    } catch (NoSuchMethodException ex) {
      throw new ComponentException(ex);
    }
  }
View Full Code Here


  protected void storeProperty(String propertyName, Object propertyValue) {
    try {
      getAccessorFactory().createPropertyAccessor(propertyName,
          getComponentContract()).setValue(delegate, propertyValue);
    } catch (IllegalAccessException ex) {
      throw new ComponentException(ex);
    } catch (InvocationTargetException ex) {
      if (ex.getCause() instanceof RuntimeException) {
        throw (RuntimeException) ex.getCause();
      }
      throw new ComponentException(ex.getCause());
    } catch (NoSuchMethodException ex) {
      throw new ComponentException(ex);
    }
  }
View Full Code Here

TOP

Related Classes of org.jspresso.framework.model.component.ComponentException

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.