public class BeanTypeAutoProxyCreator
extends org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
| 限定符和类型 | 字段和说明 |
|---|---|
private List<String> |
beanNames |
private org.springframework.context.ApplicationContext |
context |
private static long |
serialVersionUID |
private Class<?> |
targetBeanType |
| 构造器和说明 |
|---|
BeanTypeAutoProxyCreator() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
protected Object[] |
getAdvicesAndAdvisorsForBean(Class beanClass,
String beanName,
org.springframework.aop.TargetSource targetSource)
Identify as bean to proxy if the bean name is in the configured list of names.
|
protected boolean |
isMatch(String beanName,
String mappedName)
Return if the given bean name matches the mapped name.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
void |
setTargetBeanType(Class<?> targetClass) |
advisorsPreFiltered, buildAdvisors, createProxy, customizeProxyFactory, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, getOrder, isFrozen, isInfrastructureClass, isInfrastructureClass, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setBeanClassLoader, setBeanFactory, setCustomTargetSourceCreators, setFrozen, setInterceptorNames, setOrder, setProxyClassLoader, shouldProxyTargetClass, shouldSkip, wrapIfNecessaryprivate static final long serialVersionUID
private Class<?> targetBeanType
private org.springframework.context.ApplicationContext context
public void setTargetBeanType(Class<?> targetClass)
targetClass - the targetClass to setpublic void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareprotected Object[] getAdvicesAndAdvisorsForBean(Class beanClass, String beanName, org.springframework.aop.TargetSource targetSource)
getAdvicesAndAdvisorsForBean 在类中 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreatorprotected boolean isMatch(String beanName, String mappedName)
The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. Can be overridden in subclasses.
beanName - the bean name to checkmappedName - the name in the configured list of namesPatternMatchUtils.simpleMatch(String, String)Copyright © 2013–2019 Alibaba Group. All rights reserved.