/**
* Return a bean with the specified name and type. Used to resolve services that are referenced by name in a
* {@link CacheOperation}.
*
* @param beanName the name of the bean, as defined by the operation
* @param expectedType type type for the bean
* @return the bean matching that name
* @throws org.springframework.beans.factory.NoSuchBeanDefinitionException if such bean does not exist
* @see CacheOperation#keyGenerator
* @see CacheOperation#cacheManager
* @see CacheOperation#cacheResolver
*/
protected <T> T getBean(String beanName, Class<T> expectedType) {
return BeanFactoryAnnotationUtils.qualifiedBeanOfType(applicationContext, expectedType, beanName);
}
CacheAspectSupport.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:Qihua
作者:
评论列表
文章目录