Java Code Examples for org.springframework.beans.factory.config.TypedStringValue#setDynamic()

The following examples show how to use org.springframework.beans.factory.config.TypedStringValue#setDynamic() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BeanDefinitionValueResolver.java    From spring-analysis-note with MIT License 5 votes vote down vote up
/**
 * Evaluate the given value as an expression, if necessary.
 * @param value the candidate value (may be an expression)
 * @return the resolved value
 */
@Nullable
protected Object evaluate(TypedStringValue value) {
	Object result = doEvaluate(value.getValue());
	if (!ObjectUtils.nullSafeEquals(result, value.getValue())) {
		value.setDynamic();
	}
	return result;
}
 
Example 2
Source File: BeanDefinitionValueResolver.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * Evaluate the given value as an expression, if necessary.
 * @param value the candidate value (may be an expression)
 * @return the resolved value
 */
@Nullable
protected Object evaluate(TypedStringValue value) {
	Object result = doEvaluate(value.getValue());
	if (!ObjectUtils.nullSafeEquals(result, value.getValue())) {
		value.setDynamic();
	}
	return result;
}
 
Example 3
Source File: BeanDefinitionValueResolver.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Evaluate the given value as an expression, if necessary.
 * @param value the candidate value (may be an expression)
 * @return the resolved value
 */
protected Object evaluate(TypedStringValue value) {
	Object result = doEvaluate(value.getValue());
	if (!ObjectUtils.nullSafeEquals(result, value.getValue())) {
		value.setDynamic();
	}
	return result;
}
 
Example 4
Source File: BeanDefinitionValueResolver.java    From blog_demos with Apache License 2.0 5 votes vote down vote up
/**
 * Evaluate the given value as an expression, if necessary.
 * @param value the candidate value (may be an expression)
 * @return the resolved value
 */
protected Object evaluate(TypedStringValue value) {
	Object result = this.beanFactory.evaluateBeanDefinitionString(value.getValue(), this.beanDefinition);
	if (!ObjectUtils.nullSafeEquals(result, value.getValue())) {
		value.setDynamic();
	}
	return result;
}
 
Example 5
Source File: BeanDefinitionValueResolver.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * Evaluate the given value as an expression, if necessary.
 * @param value the candidate value (may be an expression)
 * @return the resolved value
 */
protected Object evaluate(TypedStringValue value) {
	Object result = doEvaluate(value.getValue());
	if (!ObjectUtils.nullSafeEquals(result, value.getValue())) {
		value.setDynamic();
	}
	return result;
}