Package com.alibaba.druid.support.ibatis
Class SpringIbatisBeanTypeAutoProxyCreator
java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.ProxyProcessorSupport
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
com.alibaba.druid.support.ibatis.SpringIbatisBeanTypeAutoProxyCreator
- All Implemented Interfaces:
SpringIbatisBeanTypeAutoProxyCreatorMBean
,Serializable
,org.springframework.aop.framework.AopInfrastructureBean
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.config.BeanPostProcessor
,org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
,org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
,org.springframework.core.Ordered
public class SpringIbatisBeanTypeAutoProxyCreator
extends org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
implements SpringIbatisBeanTypeAutoProxyCreatorMBean
类BeanTypeAutoProxyCreator.java的实现描述:使用配置类型代替Springframework中配置名称的实现
- Author:
- hualiang.lihl 2011-12-31 上午10:48:20
- See Also:
-
Field Summary
Fields inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
DO_NOT_PROXY, logger, PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createProxy
(Class beanClass, String beanName, Object[] specificInterceptors, org.springframework.aop.TargetSource targetSource) 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
Return if the given bean name matches the mapped name.Methods inherited from class org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
advisorsPreFiltered, buildAdvisors, customizeProxyFactory, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, isFrozen, isInfrastructureClass, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setBeanFactory, setCustomTargetSourceCreators, setFrozen, setInterceptorNames, shouldProxyTargetClass, shouldSkip, wrapIfNecessary
Methods inherited from class org.springframework.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass, toString
-
Constructor Details
-
SpringIbatisBeanTypeAutoProxyCreator
public SpringIbatisBeanTypeAutoProxyCreator()
-
-
Method Details
-
getAdvicesAndAdvisorsForBean
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.- Specified by:
getAdvicesAndAdvisorsForBean
in classorg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
-
createProxy
protected Object createProxy(Class beanClass, String beanName, Object[] specificInterceptors, org.springframework.aop.TargetSource targetSource) - Overrides:
createProxy
in classorg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
-
isMatch
Return if the given bean name matches the mapped name.The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. Can be overridden in subclasses.
- Parameters:
beanName
- the bean name to checkmappedName
- the name in the configured list of names- Returns:
- if the names match
- See Also:
-
PatternMatchUtils.simpleMatch(String, String)
-
getBeanNames
-
getProxyBeanNames
- Specified by:
getProxyBeanNames
in interfaceSpringIbatisBeanTypeAutoProxyCreatorMBean
-