Deprecated API


Contents
Deprecated Interfaces
org.springframework.core.ConcurrentMap
          as of Spring 3.0, since standard ConcurrentMap is available on Java 5+ anyway 
 

Deprecated Classes
org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.web.portlet.mvc.AbstractCommandController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.mvc.AbstractCommandController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.test.AbstractDependencyInjectionSpringContextTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.web.portlet.mvc.AbstractFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.mvc.AbstractFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.test.web.AbstractModelAndViewTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.test.AbstractSingleSpringContextTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.test.AbstractSpringContextTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.test.AbstractTransactionalDataSourceSpringContextTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.test.AbstractTransactionalSpringContextTests
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.web.portlet.mvc.AbstractWizardFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.mvc.AbstractWizardFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.view.xslt.AbstractXsltView
          since Spring 2.5; superseded by XsltView and its more flexible XsltView.locateSource(java.util.Map) mechanism 
org.springframework.test.AssertThrows
          favor use of JUnit 4's @Test(expected=...) support 
org.springframework.web.portlet.mvc.BaseCommandController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.mvc.BaseCommandController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.mvc.CancellableFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.test.ConditionalTestCase
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.jms.listener.DefaultMessageListenerContainer102
          as of Spring 3.0, in favor of the JMS 1.1 based DefaultMessageListenerContainer 
org.springframework.jms.core.JmsTemplate102
          as of Spring 3.0, in favor of the JMS 1.1 based JmsTemplate 
org.springframework.jms.connection.JmsTransactionManager102
          as of Spring 3.0, in favor of the JMS 1.1 based JmsTransactionManager 
org.springframework.jms.listener.adapter.MessageListenerAdapter102
          as of Spring 3.0, in favor of the JMS 1.1 based MessageListenerAdapter 
org.springframework.web.portlet.mvc.SimpleFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.web.servlet.mvc.SimpleFormController
          as of Spring 3.0, in favor of annotated controllers 
org.springframework.jms.support.converter.SimpleMessageConverter102
          as of Spring 3.0, in favor of the JMS 1.1 based SimpleMessageConverter 
org.springframework.jms.listener.SimpleMessageListenerContainer102
          as of Spring 3.0, in favor of the JMS 1.1 based SimpleMessageListenerContainer 
org.springframework.jms.connection.SingleConnectionFactory102
          as of Spring 3.0, in favor of the JMS 1.1 based SingleConnectionFactory 
 

Deprecated Fields
org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.COMMAND_NAME_VARIABLE_NAME
          as of Spring 2.5, in favor of FormTag.MODEL_ATTRIBUTE_VARIABLE_NAME 
 

Deprecated Methods
org.springframework.aop.framework.AdvisedSupport.addAllAdvisors(Advisor[])
          as of Spring 3.0, in favor of AdvisedSupport.addAdvisors(org.springframework.aop.Advisor...) 
org.springframework.ui.ModelMap.addAllObjects(Collection)
          as of Spring 2.5, in favor of ModelMap.addAllAttributes(Collection) 
org.springframework.ui.ModelMap.addAllObjects(Map)
          as of Spring 2.5, in favor of ModelMap.addAllAttributes(Map) 
org.springframework.beans.factory.support.BeanDefinitionBuilder.addConstructorArg(Object)
          since Spring 2.5, in favor of BeanDefinitionBuilder.addConstructorArgValue(java.lang.Object) 
org.springframework.ui.ModelMap.addObject(Object)
          as of Spring 2.5, in favor of ModelMap.addAttribute(Object) 
org.springframework.ui.ModelMap.addObject(String, Object)
          as of Spring 2.5, in favor of ModelMap.addAttribute(String, Object) 
org.springframework.core.CollectionFactory.createConcurrentMap(int)
          as of Spring 3.0, for usage on JDK 1.5 or higher 
org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(int)
          as of Spring 3.0, for usage on JDK 1.5 or higher 
org.springframework.web.context.ContextLoaderListener.createContextLoader()
          in favor of simply subclassing ContextLoaderListener itself (which extends ContextLoader, as of Spring 3.0) 
org.springframework.core.CollectionFactory.createCopyOnWriteSet()
          as of Spring 3.0, for usage on JDK 1.5 or higher 
org.springframework.core.CollectionFactory.createIdentityMapIfPossible(int)
          as of Spring 2.5, for usage on JDK 1.4 or higher 
org.springframework.core.CollectionFactory.createLinkedMapIfPossible(int)
          as of Spring 2.5, for usage on JDK 1.4 or higher 
org.springframework.core.CollectionFactory.createLinkedSetIfPossible(int)
          as of Spring 2.5, for usage on JDK 1.4 or higher 
org.springframework.remoting.rmi.RmiClientInterceptorUtils.doInvoke(MethodInvocation, Remote)
          as of Spring 2.5, in favor of RmiClientInterceptorUtils.invokeRemoteMethod(org.aopalliance.intercept.MethodInvocation, java.lang.Object) 
org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithListResult(SqlMapClientCallback)
          as of Spring 3.0 - not really needed anymore with generic SqlMapClientTemplate.execute(org.springframework.orm.ibatis.SqlMapClientCallback) method 
org.springframework.orm.ibatis.SqlMapClientTemplate.executeWithMapResult(SqlMapClientCallback)
          as of Spring 3.0 - not really needed anymore with generic SqlMapClientTemplate.execute(org.springframework.orm.ibatis.SqlMapClientCallback) method 
org.springframework.test.annotation.AbstractAnnotationAwareTransactionalTests.findUniqueProfileValueSourceFromContext(ApplicationContext)
          Use @ProfileValueSourceConfiguration instead. 
org.springframework.aop.config.AopNamespaceUtils.forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry)
          since Spring 2.5, in favor of AopConfigUtils.forceAutoProxyCreatorToUseClassProxying(BeanDefinitionRegistry) 
org.springframework.web.context.ContextLoaderListener.getContextLoader()
          in favor of simply subclassing ContextLoaderListener itself (which extends ContextLoader, as of Spring 3.0) 
org.springframework.validation.DataBinder.getErrors()
          in favor of DataBinder.getBindingResult(). Use the BindException.BindException(BindingResult) constructor to create a BindException instance if still needed. 
org.springframework.remoting.rmi.RmiClientInterceptorUtils.invoke(MethodInvocation, Remote, String)
          as of Spring 2.5, in favor of RmiClientInterceptorUtils.invokeRemoteMethod(org.aopalliance.intercept.MethodInvocation, java.lang.Object) 
org.springframework.core.JdkVersion.isAtLeastJava14()
          as of Spring 3.0 which requires Java 1.5+ 
org.springframework.core.JdkVersion.isAtLeastJava15()
          as of Spring 3.0 which requires Java 1.5+ 
org.springframework.util.ClassUtils.isPresent(String)
          as of Spring 2.5, in favor of ClassUtils.isPresent(String, ClassLoader) 
org.springframework.beans.factory.support.AbstractBeanDefinition.overrideFrom(AbstractBeanDefinition)
          since Spring 2.5, in favor of AbstractBeanDefinition.overrideFrom(BeanDefinition) 
org.springframework.aop.config.AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(ParserContext, Object)
          since Spring 2.5, in favor of AopNamespaceUtils.registerAutoProxyCreatorIfNecessary(ParserContext, Element) and AopConfigUtils.registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry, Object) 
org.springframework.orm.hibernate3.HibernateOperations.saveOrUpdateAll(Collection)
          as of Spring 2.5, in favor of individual saveOrUpdate or merge usage 
org.springframework.beans.factory.support.BeanDefinitionBuilder.setFactoryBean(String, String)
          since Spring 2.5, in favor of preparing this on the raw BeanDefinition object 
org.springframework.beans.factory.support.BeanDefinitionBuilder.setResourceDescription(String)
          since Spring 2.5, in favor of preparing this on the raw BeanDefinition object 
org.springframework.beans.factory.support.BeanDefinitionBuilder.setSingleton(boolean)
          since Spring 2.5, in favor of BeanDefinitionBuilder.setScope(java.lang.String) 
org.springframework.beans.factory.support.AbstractBeanDefinition.setSingleton(boolean)
          since Spring 2.5, in favor of AbstractBeanDefinition.setScope(java.lang.String) 
org.springframework.beans.factory.support.BeanDefinitionBuilder.setSource(Object)
          since Spring 2.5, in favor of preparing this on the raw BeanDefinition object 
org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.setTemplateLoaders(TemplateLoader[])
          as of Spring 2.0.1, in favor of the "preTemplateLoaders" and "postTemplateLoaders" properties 
org.springframework.web.servlet.mvc.BaseCommandController.suppressValidation(HttpServletRequest)
          as of Spring 2.0.4, in favor of the BaseCommandController.suppressValidation(HttpServletRequest, Object) variant 
 

Deprecated Constructors
org.springframework.beans.factory.support.AbstractBeanDefinition(AbstractBeanDefinition)
          since Spring 2.5, in favor of AbstractBeanDefinition.AbstractBeanDefinition(BeanDefinition) 
org.springframework.jdbc.CannotGetJdbcConnectionException(String, ClassNotFoundException)
          since Spring 2.5, in favor of throwing an IllegalStateException in case of the driver not being found 
org.springframework.jdbc.datasource.DriverManagerDataSource(String, String, String, String)
          since Spring 2.5. DriverManagerDataSource is primarily intended for accessing pre-registered JDBC drivers. If you need to register a new driver, consider using SimpleDriverDataSource instead. 
org.springframework.beans.factory.support.RootBeanDefinition(Class, boolean)
          since Spring 2.5, in favor of AbstractBeanDefinition.setScope(java.lang.String) 
org.springframework.beans.factory.support.RootBeanDefinition(Class, MutablePropertyValues, boolean)
          since Spring 2.5, in favor of AbstractBeanDefinition.setScope(java.lang.String) 
org.springframework.jdbc.datasource.SingleConnectionDataSource(String, String, String, String, boolean)
          since Spring 2.5. Driver parameter usage is generally not recommended for a SingleConnectionDataSource. If you insist on using driver parameters directly, set up the Driver class manually before invoking this DataSource.