Browse Source

Deprecate AbstractSingletonProxyFactoryBean

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4796 50f2f4bb-b051-0410-bef5-90022cba6387
pull/2/head
Chris Beams 15 years ago
parent
commit
9cefc5acd8
  1. 13
      org.springframework.aop/src/main/java/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.java
  2. 2
      org.springframework.context/src/test/java/org/springframework/context/support/TestProxyFactoryBean.java

13
org.springframework.aop/src/main/java/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.java

@ -27,8 +27,9 @@ import org.springframework.beans.factory.InitializingBean; @@ -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; @@ -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 {

2
org.springframework.context/src/test/java/org/springframework/context/support/TestProxyFactoryBean.java

@ -20,7 +20,7 @@ import org.springframework.aop.framework.AbstractSingletonProxyFactoryBean; @@ -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

Loading…
Cancel
Save