Top Description Methods
org.springframework.aop.framework.autoproxy

public Interface TargetSourceCreator

Known Direct Implementers
org.springframework.aop.framework.autoproxy.target.AbstractBeanFactoryBasedTargetSourceCreator
Annotations
@FunctionalInterface
Imports
org.springframework.aop.TargetSource, org.springframework.lang.Nullable

Implementations can create special target sources, such as pooling target sources, for particular beans. For example, they may base their choice on attributes, such as a pooling attribute, on the target class.

AbstractAutoProxyCreator can support a number of TargetSourceCreators, which will be applied in order.

Authors
Rod Johnson, Juergen Hoeller

Method Summary

Modifier and TypeMethod and Description
public TargetSource

Returns:

a special TargetSource or null if this TargetSourceCreator isn't interested in the particular bean
getTargetSource
(Class<?>
the class of the bean to create a TargetSource for
beanClass
,
String
the name of the bean
beanName
)

Create a special TargetSource for the given bean, if any.

Method Detail

getTargetSourceback to summary
public TargetSource getTargetSource(Class<?> beanClass, String beanName)

Create a special TargetSource for the given bean, if any.

Parameters
beanClass:Class<?>

the class of the bean to create a TargetSource for

beanName:String

the name of the bean

Returns:TargetSource

a special TargetSource or null if this TargetSourceCreator isn't interested in the particular bean

Annotations
@Nullable