org.springframework.aop.framework.autoproxy
Interface TargetSourceCreator

All Known Implementing Classes:
AbstractPrototypeBasedTargetSourceCreator

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.

Author:
Rod Johnson

Method Summary
 TargetSource getTargetSource(java.lang.Object bean, java.lang.String beanName, BeanFactory factory)
          Create a special TargetSource for the given bean, if any.
 

Method Detail

getTargetSource

public TargetSource getTargetSource(java.lang.Object bean,
                                    java.lang.String beanName,
                                    BeanFactory factory)
Create a special TargetSource for the given bean, if any.

Parameters:
bean - the bean to create a TargetSource for
beanName - the name of the bean
factory - the containing factory
Returns:
a special TargetSource or null if this TargetSourceCreator isn't interested in the particular bean


Copyright (C) 2003-2004 The Spring Framework Project.