类 BeanTypeAutoProxyCreator

java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.ProxyProcessorSupport
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
com.alibaba.druid.support.spring.stat.BeanTypeAutoProxyCreator
所有已实现的接口:
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.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered

public class BeanTypeAutoProxyCreator extends org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
类BeanTypeAutoProxyCreator.java的实现描述:使用配置类型代替Springframework中配置名称的实现
作者:
hualiang.lihl 2011-12-31 上午10:48:20
另请参阅:
  • 字段概要

    从类继承的字段 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator

    DO_NOT_PROXY, logger, PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS

    从接口继承的字段 org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
    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)
     

    从类继承的方法 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator

    advisorsPreFiltered, buildAdvisors, createProxy, customizeProxyFactory, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, isFrozen, isInfrastructureClass, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, postProcessPropertyValues, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setBeanFactory, setCustomTargetSourceCreators, setFrozen, setInterceptorNames, shouldProxyTargetClass, shouldSkip, wrapIfNecessary

    从类继承的方法 org.springframework.aop.framework.ProxyProcessorSupport

    evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader

    从类继承的方法 org.springframework.aop.framework.ProxyConfig

    copyFrom, isExposeProxy, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setOpaque, setOptimize, setProxyTargetClass, toString

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 构造器详细资料

    • BeanTypeAutoProxyCreator

      public BeanTypeAutoProxyCreator()
  • 方法详细资料

    • setTargetBeanType

      public void setTargetBeanType(Class<?> targetClass)
      参数:
      targetClass - the targetClass to set
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext context)
      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
    • 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.
      指定者:
      getAdvicesAndAdvisorsForBean 在类中 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator
    • isMatch

      protected boolean isMatch(String beanName, String mappedName)
      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.

      参数:
      beanName - the bean name to check
      mappedName - the name in the configured list of names
      返回:
      if the names match
      另请参阅:
      • PatternMatchUtils.simpleMatch(String, String)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      Exception