接口的使用
org.springframework.aop.TargetSource
使用TargetSource的程序包 程序包 说明 org.springframework.aop.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.framework.autoproxy Bean post-processors for use in ApplicationContexts to simplify AOP usage by automatically creating AOP proxies without the need to use a ProxyFactoryBean.org.springframework.aop.framework.autoproxy.target org.springframework.aop.target org.springframework.aop.target.dynamic org.springframework.jndi The classes in this package make JNDI easier to use, facilitating the accessing of configuration stored in JNDI, and provide useful superclasses for JNDI access classes.org.springframework.scripting.support Support classes for Spring's scripting package.org.springframework.aop.framework中TargetSource的使用
声明为TargetSource的org.springframework.aop.framework中的字段 修饰符和类型 字段 说明 static TargetSourceAdvisedSupport. EMPTY_TARGET_SOURCECanonical TargetSource when there's no target, and behavior is supplied by the advisors.返回TargetSource的org.springframework.aop.framework中的方法 修饰符和类型 方法 说明 protected TargetSourceAbstractSingletonProxyFactoryBean. createTargetSource(Object target)Determine a TargetSource for the given target (or TargetSource).TargetSourceAdvised. getTargetSource()Return theTargetSourceused by thisAdvisedobject.TargetSourceAdvisedSupport. getTargetSource()参数类型为TargetSource的org.springframework.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 <T> TProxyFactory. getProxy(Class<T> proxyInterface, TargetSource targetSource)Create a proxy for the specifiedTargetSource, implementing the specified interface.static ObjectProxyFactory. getProxy(TargetSource targetSource)Create a proxy for the specifiedTargetSourcethat extends the target class of theTargetSource.voidAdvised. setTargetSource(TargetSource targetSource)Change theTargetSourceused by thisAdvisedobject.voidAdvisedSupport. setTargetSource(TargetSource targetSource)参数类型为TargetSource的org.springframework.aop.framework中的构造器 构造器 说明 ProxyFactory(Class<?> proxyInterface, TargetSource targetSource)Create a ProxyFactory for the specifiedTargetSource, making the proxy implement the specified interface.org.springframework.aop.framework.autoproxy中TargetSource的使用
返回TargetSource的org.springframework.aop.framework.autoproxy中的方法 修饰符和类型 方法 说明 protected TargetSourceAbstractAutoProxyCreator. getCustomTargetSource(Class<?> beanClass, String beanName)Create a target source for bean instances.TargetSourceTargetSourceCreator. getTargetSource(Class<?> beanClass, String beanName)Create a special TargetSource for the given bean, if any.参数类型为TargetSource的org.springframework.aop.framework.autoproxy中的方法 修饰符和类型 方法 说明 protected ObjectAbstractAutoProxyCreator. createProxy(Class<?> beanClass, String beanName, Object[] specificInterceptors, TargetSource targetSource)Create an AOP proxy for the given bean.protected Object[]AbstractAdvisorAutoProxyCreator. getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource targetSource)protected abstract Object[]AbstractAutoProxyCreator. getAdvicesAndAdvisorsForBean(Class<?> beanClass, String beanName, TargetSource customTargetSource)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 bean to proxy if the bean name is in the configured list of names.org.springframework.aop.framework.autoproxy.target中TargetSource的使用
返回TargetSource的org.springframework.aop.framework.autoproxy.target中的方法 修饰符和类型 方法 说明 TargetSourceAbstractBeanFactoryBasedTargetSourceCreator. getTargetSource(Class<?> beanClass, String beanName)org.springframework.aop.target中TargetSource的使用
实现TargetSource的org.springframework.aop.target中的类 修饰符和类型 类 说明 classAbstractBeanFactoryBasedTargetSourceBase class forTargetSourceimplementations that are based on a SpringBeanFactory, delegating to Spring-managed bean instances.classAbstractLazyCreationTargetSourceTargetSourceimplementation that will lazily create a user-managed object.classAbstractPoolingTargetSourceAbstract base class for poolingTargetSourceimplementations which maintain a pool of target instances, acquiring and releasing a target object from the pool for each method invocation.classAbstractPrototypeBasedTargetSourceBase class for dynamicTargetSourceimplementations that create new prototype bean instances to support a pooling or new-instance-per-invocation strategy.classCommonsPool2TargetSourceTargetSourceimplementation that holds objects in a configurable Apache Commons2 Pool.classEmptyTargetSourceCanonicalTargetSourcewhen there is no target (or just the target class known), and behavior is supplied by interfaces and advisors only.classHotSwappableTargetSourceTargetSourceimplementation that caches a local target object, but allows the target to be swapped while the application is running.classLazyInitTargetSourceTargetSourcethat lazily accesses a singleton bean from aBeanFactory.classPrototypeTargetSourceTargetSourceimplementation that creates a new instance of the target bean for each request, destroying each instance on release (after each request).classSimpleBeanTargetSourceSimpleTargetSourceimplementation, freshly obtaining the specified target bean from its containing SpringBeanFactory.classSingletonTargetSourceImplementation of theTargetSourceinterface that holds a given object.classThreadLocalTargetSourceAlternative to an object pool.org.springframework.aop.target.dynamic中TargetSource的使用
实现TargetSource的org.springframework.aop.target.dynamic中的类 修饰符和类型 类 说明 classAbstractRefreshableTargetSourceAbstractTargetSourceimplementation that wraps a refreshable target object.classBeanFactoryRefreshableTargetSourceRefreshable TargetSource that fetches fresh target beans from a BeanFactory.org.springframework.jndi中TargetSource的使用
实现TargetSource的org.springframework.jndi中的类 修饰符和类型 类 说明 classJndiObjectTargetSourceAOPTargetSourcethat provides configurable JNDI lookups forgetTarget()calls.org.springframework.scripting.support中TargetSource的使用
实现TargetSource的org.springframework.scripting.support中的类 修饰符和类型 类 说明 classRefreshableScriptTargetSourceSubclass ofBeanFactoryRefreshableTargetSourcethat determines whether a refresh is required through the givenScriptFactory.参数类型为TargetSource的org.springframework.scripting.support中的方法 修饰符和类型 方法 说明 protected ObjectScriptFactoryPostProcessor. createRefreshableProxy(TargetSource ts, Class<?>[] interfaces, boolean proxyTargetClass)Create a refreshable proxy for the given AOP TargetSource.