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

The following examples show how to use org.springframework.beans.factory.config.TypedStringValue#resolveTargetType() . 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
/**
 * Resolve the target type in the given TypedStringValue.
 * @param value the TypedStringValue to resolve
 * @return the resolved target type (or {@code null} if none specified)
 * @throws ClassNotFoundException if the specified type cannot be resolved
 * @see TypedStringValue#resolveTargetType
 */
@Nullable
protected Class<?> resolveTargetType(TypedStringValue value) throws ClassNotFoundException {
	if (value.hasTargetType()) {
		return value.getTargetType();
	}
	return value.resolveTargetType(this.beanFactory.getBeanClassLoader());
}
 
Example 2
Source File: BeanDefinitionValueResolver.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * Resolve the target type in the given TypedStringValue.
 * @param value the TypedStringValue to resolve
 * @return the resolved target type (or {@code null} if none specified)
 * @throws ClassNotFoundException if the specified type cannot be resolved
 * @see TypedStringValue#resolveTargetType
 */
@Nullable
protected Class<?> resolveTargetType(TypedStringValue value) throws ClassNotFoundException {
	if (value.hasTargetType()) {
		return value.getTargetType();
	}
	return value.resolveTargetType(this.beanFactory.getBeanClassLoader());
}
 
Example 3
Source File: BeanDefinitionValueResolver.java    From lams with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Resolve the target type in the given TypedStringValue.
 * @param value the TypedStringValue to resolve
 * @return the resolved target type (or {@code null} if none specified)
 * @throws ClassNotFoundException if the specified type cannot be resolved
 * @see TypedStringValue#resolveTargetType
 */
protected Class<?> resolveTargetType(TypedStringValue value) throws ClassNotFoundException {
	if (value.hasTargetType()) {
		return value.getTargetType();
	}
	return value.resolveTargetType(this.beanFactory.getBeanClassLoader());
}
 
Example 4
Source File: BeanDefinitionValueResolver.java    From blog_demos with Apache License 2.0 3 votes vote down vote up
/**
 * Resolve the target type in the given TypedStringValue.
 * @param value the TypedStringValue to resolve
 * @return the resolved target type (or {@code null} if none specified)
 * @throws ClassNotFoundException if the specified type cannot be resolved
 * @see TypedStringValue#resolveTargetType
 */
protected Class<?> resolveTargetType(TypedStringValue value) throws ClassNotFoundException {
	if (value.hasTargetType()) {
		return value.getTargetType();
	}
	return value.resolveTargetType(this.beanFactory.getBeanClassLoader());
}
 
Example 5
Source File: BeanDefinitionValueResolver.java    From spring4-understanding with Apache License 2.0 3 votes vote down vote up
/**
 * Resolve the target type in the given TypedStringValue.
 * @param value the TypedStringValue to resolve
 * @return the resolved target type (or {@code null} if none specified)
 * @throws ClassNotFoundException if the specified type cannot be resolved
 * @see TypedStringValue#resolveTargetType
 */
protected Class<?> resolveTargetType(TypedStringValue value) throws ClassNotFoundException {
	if (value.hasTargetType()) {
		return value.getTargetType();
	}
	return value.resolveTargetType(this.beanFactory.getBeanClassLoader());
}