Deprecate AbstractSingletonProxyFactoryBean

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4796 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Chris Beams 2011-07-26 22:29:14 +00:00
parent 328b502b4a
commit 9cefc5acd8
2 changed files with 11 additions and 4 deletions

View File

@ -27,8 +27,9 @@ import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.ClassUtils;
/**
* Convenient proxy factory bean superclass for proxy factory
* beans that create only singletons.
* Convenient superclass for proxy-creating
* {@link org.springframework.beans.factory.FactoryBean FactoryBean} types that produce
* only singleton-scoped objects.
*
* <p>Manages pre- and post-interceptors (references, rather than
* interceptor names, as in {@link ProxyFactoryBean}) and provides
@ -36,8 +37,14 @@ import org.springframework.util.ClassUtils;
*
* @author Juergen Hoeller
* @since 2.0
* @deprecated as of Spring 3.1 following the deprecation of its only implementation
* ({@link org.springframework.transaction.interceptor.TransactionProxyFactoryBean
* TransactionProxyFactoryBean}) and generally in favor of providing such functionality
* via Spring XML namespaces, e.g. {@code tx:} or {@code @Enable}&#042; annotations, e.g.
* {@code @EnableTransactionManagement}.
*/
@SuppressWarnings("serial")
@Deprecated
@SuppressWarnings("serial")
public abstract class AbstractSingletonProxyFactoryBean extends ProxyConfig
implements FactoryBean<Object>, BeanClassLoaderAware, InitializingBean {

View File

@ -20,7 +20,7 @@ import org.springframework.aop.framework.AbstractSingletonProxyFactoryBean;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
@SuppressWarnings("serial")
@SuppressWarnings({ "serial", "deprecation" })
public class TestProxyFactoryBean extends AbstractSingletonProxyFactoryBean implements BeanFactoryAware {
@Override