接口的使用
infra.aop.TargetSource
使用TargetSource的程序包
程序包
说明
Package containing Infra basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
Bean post-processors for use in ApplicationContexts to simplify AOP usage
by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
-
infra.aop.framework中TargetSource的使用
声明为TargetSource的infra.aop.framework中的字段修饰符和类型字段说明static final TargetSourceAdvisedSupport.EMPTY_TARGET_SOURCECanonical TargetSource when there's no target, and behavior is supplied by the advisors.(专用程序包) TargetSourceAdvisedSupport.targetSourcePackage-protected to allow direct access for efficiency.private final TargetSourceCglibAopProxy.DynamicUnadvisedExposedInterceptor.targetSourcetargetSource记录组件的字段。private final TargetSourceCglibAopProxy.DynamicUnadvisedInterceptor.targetSourcetargetSource记录组件的字段。修饰符和类型方法说明protected TargetSourceAbstractSingletonProxyFactoryBean.createTargetSource(Object target) Determine a TargetSource for the given target (or TargetSource).private TargetSourceProxyFactoryBean.freshTargetSource()Return a TargetSource to use when creating a proxy.Advised.getTargetSource()Return theTargetSourceused by thisAdvisedobject.AdvisedSupport.getTargetSource()CglibAopProxy.DynamicUnadvisedExposedInterceptor.targetSource()返回targetSource记录组件的值。CglibAopProxy.DynamicUnadvisedInterceptor.targetSource()返回targetSource记录组件的值。参数类型为TargetSource的infra.aop.framework中的方法修饰符和类型方法说明protected voidAdvisedSupport.copyConfigurationFrom(AdvisedSupport other, TargetSource targetSource, List<Advisor> advisors) Copy the AOP configuration from the given AdvisedSupport object, but allow substitution of a fresh TargetSource and a given interceptor chain.static ObjectProxyFactory.getProxy(TargetSource targetSource) Create a proxy for the specifiedTargetSourcethat extends the target class of theTargetSource.static <T> TProxyFactory.getProxy(Class<T> proxyInterface, TargetSource targetSource) Create a proxy for the specifiedTargetSource, implementing the specified interface.voidAdvised.setTargetSource(TargetSource targetSource) Change theTargetSourceused by thisAdvisedobject.voidAdvisedSupport.setTargetSource(TargetSource targetSource) 参数类型为TargetSource的infra.aop.framework中的构造器限定符构造器说明privateDynamicUnadvisedExposedInterceptor(TargetSource targetSource) 创建DynamicUnadvisedExposedInterceptor记录的实例。privateDynamicUnadvisedInterceptor(TargetSource targetSource) 创建DynamicUnadvisedInterceptor记录的实例。ProxyFactory(Class<?> proxyInterface, TargetSource targetSource) Create a ProxyFactory for the specifiedTargetSource, making the proxy implement the specified interface. -
infra.aop.framework.autoproxy中TargetSource的使用
修饰符和类型方法说明protected TargetSourceAbstractAutoProxyCreator.getCustomTargetSource(Class<?> beanClass, String beanName) protected TargetSourceBeanNameAutoProxyCreator.getCustomTargetSource(Class<?> beanClass, String beanName) Delegate toAbstractAutoProxyCreator.getCustomTargetSource(Class, String)if the bean name matches one of the names in the configured list of supported names, returningnullotherwise.protected TargetSourceAbstractAutoProxyCreator.getTargetSource(Object bean, String def) TargetSourceCreator.getTargetSource(Class<?> beanClass, String beanName) Create a special TargetSource for the given bean, if any.修饰符和类型方法说明private ObjectAbstractAutoProxyCreator.buildProxy(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource, boolean classOnly) protected ObjectAbstractAutoProxyCreator.createProxy(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource) Create an AOP proxy for the given bean.private Class<?>AbstractAutoProxyCreator.createProxyClass(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource) protected Object[]AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource targetSource) protected abstract Object[]AbstractAutoProxyCreator.getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource targetSource) Return whether the given bean is to be proxied, what additional advices (e.g.protected Object[]BeanNameAutoProxyCreator.getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource targetSource) Identify as a bean to proxy if the bean name matches one of the names in the configured list of supported names. -
infra.aop.framework.autoproxy.target中TargetSource的使用
修饰符和类型方法说明final TargetSourceAbstractBeanFactoryTargetSourceCreator.getTargetSource(Class<?> beanClass, String beanName) -
infra.aop.target中TargetSource的使用
修饰符和类型类说明classBase class forTargetSourceimplementations that are based on aBeanFactory, delegating to ioc-managed bean instances.classTargetSourceimplementation that will lazily create a user-managed object.classAbstract base class for poolingTargetSourceimplementations which maintain a pool of target instances, acquiring and releasing a target object from the pool for each method invocation.classBase class for dynamicTargetSourceimplementations that create new prototype bean instances to support a pooling or new-instance-per-invocation strategy.classAbstractTargetSourceimplementation that wraps a refreshable target object.classRefreshable TargetSource that fetches fresh target beans from a BeanFactory.classTargetSourceimplementation that holds objects in a configurable Apache Commons2 Pool.final classCanonicalTargetSourcewhen there is no target (or just the target class known), and behavior is supplied by interfaces and advisors only.classTargetSourceimplementation that caches a local target object, but allows the target to be swapped while the application is running.classTargetSourcethat lazily accesses a singleton bean from aBeanFactory.classTargetSourceimplementation that creates a new instance of the target bean for each request, destroying each instance on release (after each request).classSimpleTargetSourceimplementation, freshly obtaining the specified target bean from its containingBeanFactory.classImplementation of theTargetSourceinterface that holds a given object.classAlternative to an object pool.