/** * Get the value * * @param valueContext the value context * @return the value * @throws Exception for any error */ public Object getValue(ServiceValueContext valueContext) throws Exception { valueContext.setTrim(isTrim()); valueContext.setReplace(isReplace()); try { return value.getValue(valueContext); } catch (Throwable t) { throw ConfigurationException.rethrowAsConfigurationException("Error configuring attribute " + name, t); } }
/** * Get the value * * @param valueContext the value context * @return the value * @throws Exception for any error */ public Object getValue(ServiceValueContext valueContext) throws Exception { valueContext.setTrim(isTrim()); valueContext.setReplace(isReplace()); try { return value.getValue(valueContext); } catch (Throwable t) { throw ConfigurationException.rethrowAsConfigurationException("Error configuring attribute " + name, t); } }