- All Known Implementing Classes:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TargetSourceCreator
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.
- Rod Johnson, Juergen Hoeller
getTargetSourceCreate a special TargetSource for the given bean, if any.
beanClass- the class of the bean to create a TargetSource for
beanName- the name of the bean
- a special TargetSource or
nullif this TargetSourceCreator isn't interested in the particular bean