提交 b85440f2 编写于 作者: C Chris Beams

Deprecate AbstractSingletonProxyFactoryBean

上级 3c2e4873
......@@ -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 {
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册