Deprecated API


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

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.test.jpa.AbstractAspectjJpaTests 
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.core.enums.AbstractCachingLabeledEnumResolver 
          as of Spring 3.0, in favor of Java 5 enums. 
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.core.enums.AbstractGenericLabeledEnum 
          as of Spring 3.0, in favor of Java 5 enums. 
org.springframework.test.jpa.AbstractJpaTests 
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) 
org.springframework.core.enums.AbstractLabeledEnum 
          as of Spring 3.0, in favor of Java 5 enums. 
org.springframework.test.web.AbstractModelAndViewTests 
          as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests) or ModelAndViewAssert with JUnit 4 and TestNG. 
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.core.enums.LetterCodedLabeledEnum 
          as of Spring 3.0, in favor of Java 5 enums. 
org.springframework.jms.listener.adapter.MessageListenerAdapter102 
          as of Spring 3.0, in favor of the JMS 1.1 based MessageListenerAdapter 
org.springframework.web.context.support.ServletContextFactoryBean 
          as of Spring 3.0, since "servletContext" is now available as a default bean in every WebApplicationContext 
org.springframework.core.enums.ShortCodedLabeledEnum 
          as of Spring 3.0, in favor of Java 5 enums. 
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 
org.springframework.core.enums.StaticLabeledEnum 
          as of Spring 3.0, in favor of Java 5 enums. 
org.springframework.core.enums.StaticLabeledEnumResolver 
          as of Spring 3.0, in favor of Java 5 enums. 
org.springframework.core.enums.StringCodedLabeledEnum 
          as of Spring 3.0, in favor of Java 5 enums. 
 

Deprecated Annotation Types
org.springframework.test.annotation.NotTransactional 
          as of Spring 3.0, in favor of moving the non-transactional test method to a separate (non-transactional) test class or to a @BeforeTransaction or @AfterTransaction method. 
 

Deprecated Fields
org.springframework.beans.factory.config.AutowireCapableBeanFactory.AUTOWIRE_AUTODETECT 
          as of Spring 3.0: If you are using mixed autowiring strategies, prefer annotation-based autowiring for clearer demarcation of autowiring needs. 
org.springframework.beans.factory.support.AbstractBeanDefinition.AUTOWIRE_AUTODETECT 
          as of Spring 3.0: If you are using mixed autowiring strategies, use annotation-based autowiring for clearer demarcation of autowiring needs. 
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.createLinkedCaseInsensitiveMapIfPossible(int) 
          as of Spring 3.0, for usage on JDK 1.5 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.util.ClassUtils.forName(String) 
          as of Spring 3.0, in favor of specifying a ClassLoader explicitly: see ClassUtils.forName(String, ClassLoader) 
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.core.JdkVersion.isAtLeastJava16() 
          as of Spring 3.0, in favor of reflective checks for the specific Java 1.6 classes of interest 
org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser.isEligibleAttribute(Attr) 
          in favour of AbstractSimpleBeanDefinitionParser.isEligibleAttribute(org.w3c.dom.Attr, ParserContext) 
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.jdbc.core.simple.SimpleJdbcTemplate.query(String, ParameterizedRowMapper, Map) 
           
org.springframework.jdbc.core.simple.SimpleJdbcOperations.query(String, ParameterizedRowMapper, Map) 
          as of Spring 3.0: Use the method using the newly genericized RowMapper interface instead since the RowMapper and ParameterizedRowMapper interfaces are equivalent now. 
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.query(String, ParameterizedRowMapper, Object...) 
           
org.springframework.jdbc.core.simple.SimpleJdbcOperations.query(String, ParameterizedRowMapper, Object...) 
          as of Spring 3.0: Use the method using the newly genericized RowMapper interface instead since the RowMapper and ParameterizedRowMapper interfaces are equivalent now. 
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.query(String, ParameterizedRowMapper, SqlParameterSource) 
           
org.springframework.jdbc.core.simple.SimpleJdbcOperations.query(String, ParameterizedRowMapper, SqlParameterSource) 
          as of Spring 3.0: Use the method using the newly genericized RowMapper interface instead since the RowMapper and ParameterizedRowMapper interfaces are equivalent now. 
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(String, ParameterizedRowMapper, Map) 
           
org.springframework.jdbc.core.simple.SimpleJdbcOperations.queryForObject(String, ParameterizedRowMapper, Map) 
          as of Spring 3.0: Use the method using the newly genericized RowMapper interface instead since the RowMapper and ParameterizedRowMapper interfaces are equivalent now. 
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(String, ParameterizedRowMapper, Object...) 
           
org.springframework.jdbc.core.simple.SimpleJdbcOperations.queryForObject(String, ParameterizedRowMapper, Object...) 
          as of Spring 3.0: Use the method using the newly genericized RowMapper interface instead since the RowMapper and ParameterizedRowMapper interfaces are equivalent now. 
org.springframework.jdbc.core.simple.SimpleJdbcTemplate.queryForObject(String, ParameterizedRowMapper, SqlParameterSource) 
           
org.springframework.jdbc.core.simple.SimpleJdbcOperations.queryForObject(String, ParameterizedRowMapper, SqlParameterSource) 
          as of Spring 3.0: Use the method using the newly genericized RowMapper interface instead since the RowMapper and ParameterizedRowMapper interfaces are equivalent now. 
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. 
 


출처 - http://static.springsource.org/spring/docs/3.0.0.RC1/javadoc-api/deprecated-list.html

'Framework & Platform > Spring' 카테고리의 다른 글

Spring - @Controller  (0) 2012.05.09
Spring - @RequestMapping  (0) 2012.05.09
Spring MVC - MultiActionController 사용하기  (0) 2012.05.08
spring controller 종류  (0) 2012.05.08
spring에서 thread  (0) 2012.05.02
Posted by linuxism
,