Deprecated API

Deprecated Classes
org.springframework.jndi.AbstractJndiLocator
          Derive from JndiObjectLocator instead, invoking the lookup method whenever the subclass needs it (instead of waiting for a "located" callback). 
org.springframework.web.servlet.tags.BindStatus
          in favor of org.springframework.web.servlet.support.BindStatus 
org.springframework.aop.support.RegexpMethodPointcut
          use Perl5RegexpMethodPointcut instead 
 

Deprecated Exceptions
org.springframework.beans.factory.FactoryBeanCircularReferenceException
          renamed to FactoryBeanNotInitializedException 
 

Deprecated Fields
org.springframework.util.Log4jConfigurer.DEFAULT_REFRESH_INTERVAL
          Either choose no config file refreshing (initLogging with plain location) or specify an explicit refresh interval. As of Spring 1.1.3, there is no default refresh interval; the default is no config file refreshing now. The rationale is to avoid Log4J's watchdog thread (which never terminates) unless explicitly required. 
 

Deprecated Methods
org.springframework.aop.framework.Advised.addAfterReturningAdvice(AfterReturningAdvice)
          in favor of addAdvice 
org.springframework.aop.framework.AdvisedSupport.addAfterReturningAdvice(AfterReturningAdvice)
          in favor of addAdvice 
org.springframework.aop.framework.Advised.addBeforeAdvice(MethodBeforeAdvice)
          in favor of addAdvice 
org.springframework.aop.framework.AdvisedSupport.addBeforeAdvice(MethodBeforeAdvice)
          in favor of addAdvice 
org.springframework.aop.framework.Advised.addInterceptor(Interceptor)
          in favor of addAdvice 
org.springframework.aop.framework.AdvisedSupport.addInterceptor(Interceptor)
          in favor of addAdvice 
org.springframework.aop.framework.Advised.addInterceptor(int, Interceptor)
          in favor of addAdvice 
org.springframework.aop.framework.AdvisedSupport.addInterceptor(int, Interceptor)
          in favor of addAdvice 
org.springframework.mock.web.MockHttpServletRequest.addRole(String)
          in favor of addUserRole 
org.springframework.aop.framework.Advised.addThrowsAdvice(ThrowsAdvice)
          in favor of addAdvice 
org.springframework.aop.framework.AdvisedSupport.addThrowsAdvice(ThrowsAdvice)
          in favor of addAdvice 
org.springframework.aop.framework.AdvisedSupport.countInterceptorsOfType(Class)
          in favor of countAdvicesOfType 
org.springframework.orm.hibernate.HibernateTemplate.createCriteria(Session, Class)
          Use session.createCriteria instead, which will now automatically apply the template's query cache settings and the transaction timeout (through the use of a special Session proxy). 
org.springframework.orm.hibernate.HibernateTemplate.createQuery(Session, String)
          Use session.createQuery instead, which will now automatically apply the template's query cache settings and the transaction timeout (through the use of a special Session proxy). 
org.springframework.orm.hibernate.HibernateTemplate.findByNamedQuery(String, String[], Object[])
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateOperations.findByNamedQuery(String, String[], Object[])
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateTemplate.findByNamedQuery(String, String[], Object[], Type[])
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateOperations.findByNamedQuery(String, String[], Object[], Type[])
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateTemplate.findByNamedQuery(String, String, Object)
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateOperations.findByNamedQuery(String, String, Object)
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateTemplate.findByNamedQuery(String, String, Object, Type)
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.orm.hibernate.HibernateOperations.findByNamedQuery(String, String, Object, Type)
          in favor of findByNamedQueryAndNamedParam, to avoid parameter overloading ambiguities 
org.springframework.aop.target.PoolingConfig.getActive()
          in favor of getActiveCount 
org.springframework.aop.target.CommonsPoolTargetSource.getActive()
          in favor of getActiveCount 
org.springframework.beans.factory.config.BeanDefinition.getBeanClass()
          Use BeanFactory's getType method instead, which properly resolves child bean definitions and asks FactoryBeans for the type of object they create. 
org.springframework.jdbc.datasource.DataSourceUtils.getDataSourceFromJndi(String)
          in favor of managing a DataSource via dependency injection, i.e. using a JndiObjectFactoryBean for a JNDI DataSource and pass a bean reference to a setDataSource(DataSource) method or the like 
org.springframework.jdbc.datasource.DataSourceUtils.getDataSourceFromJndi(String, boolean)
          in favor of managing a DataSource via dependency injection, i.e. using a JndiObjectFactoryBean for a JNDI DataSource and pass a bean reference to a setDataSource(DataSource) method or the like 
org.springframework.dao.IncorrectUpdateSemanticsDataAccessException.getDataWasUpdated()
          in favor of wasDataUpdated 
org.springframework.web.servlet.view.document.AbstractPdfView.getDocument()
          in favor of newDocument 
org.springframework.aop.framework.Advised.getExposeProxy()
          in favor of isExposeProxy 
org.springframework.aop.framework.ProxyConfig.getExposeProxy()
          in favor of isExposeProxy 
org.springframework.aop.target.PoolingConfig.getFree()
          in favor of getIdleCount 
org.springframework.aop.target.CommonsPoolTargetSource.getFree()
          in favor of getIdleCount 
org.springframework.aop.target.ThreadLocalTargetSourceStats.getHits()
          in favor of getHitCount 
org.springframework.aop.target.ThreadLocalTargetSource.getHits()
          in favor of getHitCount 
org.springframework.jdbc.core.JdbcTemplate.getIgnoreWarnings()
          in favor of isIgnoreWarnings 
org.springframework.aop.target.ThreadLocalTargetSourceStats.getInvocations()
          in favor of getInvocationCount 
org.springframework.aop.target.ThreadLocalTargetSource.getInvocations()
          in favor of getInvocationCount 
org.springframework.web.context.support.RequestHandledEvent.getIpAddress()
          in favor of getClientAddress 
org.springframework.util.StopWatch.getLastInterval()
          in favor of getLastTaskTimeMillis 
org.springframework.orm.hibernate.HibernateTemplate.getNamedQuery(Session, String)
          Use session.getNamedQuery instead, which will now automatically apply the template's query cache settings and the transaction timeout (through the use of a special Session proxy). 
org.springframework.beans.factory.config.ConstructorArgumentValues.getNrOfArguments()
          in favor of getArgumentCount 
org.springframework.beans.support.PagedListHolder.getNrOfPages()
          in favor of getPageCount 
org.springframework.web.servlet.mvc.AbstractWizardFormController.getNrOfPages()
          in favor of getPageCount 
org.springframework.aop.target.ThreadLocalTargetSourceStats.getObjects()
          in favor of getObjectCount 
org.springframework.aop.target.ThreadLocalTargetSource.getObjects()
          in favor of getObjectCount 
org.springframework.aop.framework.ProxyConfig.getOpaque()
          in favor of isOpaque 
org.springframework.aop.framework.ProxyConfig.getOptimize()
          in favor of isOptimize 
org.springframework.aop.framework.Advised.getProxyTargetClass()
          in favor of isProxyTargetClass 
org.springframework.aop.framework.ProxyConfig.getProxyTargetClass()
          in favor of isProxyTargetClass 
org.springframework.util.StopWatch.TaskInfo.getTime()
          in favor of getTimeMillis 
org.springframework.web.context.support.RequestHandledEvent.getTimeMillis()
          in favor of getProcessingTimeMillis 
org.springframework.util.StopWatch.TaskInfo.getTimeSecs()
          in favor of getTimeSeconds 
org.springframework.util.StopWatch.getTotalTime()
          in favor of getTotalTimeMillis 
org.springframework.util.StopWatch.getTotalTimeSecs()
          in favor of getTotalTimeSeconds 
org.springframework.util.ResponseTimeMonitorImpl.getUptime()
          in favor of getUptimeMillis 
org.springframework.web.context.support.RequestHandledEvent.getURL()
          in favor of getRequestUrl 
org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator.getUsePrefix()
          in favor of isUsePrefix 
org.springframework.aop.framework.AdvisedSupport.indexOf(Interceptor)
          in favor of indexOf(Advice) 
org.springframework.aop.framework.AdvisedSupport.interceptorIncluded(Interceptor)
          in favor of adviceIncluded 
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.readRemoteInvocationResult(InputStream)
          in favor of readRemoteInvocationResult(InputStream, String) 
org.springframework.aop.framework.AdvisedSupport.removeInterceptor(Interceptor)
          in favor or removeAdvice 
org.springframework.beans.BeanWrapperImpl.setWrappedInstance(Object, String)
          in favor of setWrappedInstance(object, nestedPath, rootObject) 
 

Deprecated Constructors
org.springframework.context.support.ApplicationObjectSupport(ApplicationContext)
          Rely on default no-arg constructor instead! 
org.springframework.beans.BeanWrapperImpl(Object, String)
          in favor of BeanWrapperImpl(object, nestedPath, rootObject) 
org.springframework.beans.factory.xml.XmlBeanFactory(InputStream)
          Use XmlBeanFactory(Resource) instead, if necessary with an InputStreamResource parameter. 
 



Copyright (C) 2003-2004 The Spring Framework Project.