Deprecated API


Contents
Deprecated Classes
org.apache.camel.model.language.BeanShellExpression
          use LanguageExpression will be removed in Camel 2.0 
org.apache.camel.impl.BinaryPredicateSupport
          is a duplicate of the same class in the builder package. Will be removed in Camel 2.0 
org.apache.camel.processor.interceptor.Breakpoint
          will be removed in Camel 2.0 
org.apache.camel.CamelTemplate
          use ProducerTemplate instead, can be created using CamelContext.createProducerTemplate(). Will be removed in Camel 2.0 
org.apache.camel.processor.interceptor.Debugger
          will be removed in Camel 2.0 
org.apache.camel.processor.interceptor.DebugInterceptor
          will be removed in Camel 2.0 
org.apache.camel.processor.interceptor.ExceptionEvent
          will be removed in Camel 2.0 
org.apache.camel.ExchangeProperty
          will be removed in Camel 2.0 
org.apache.camel.model.InterceptorType
          will be removed in Camel 2.0 
org.apache.camel.component.seda.ListPollingConsumer
          not used. Will be removed in Camel 2.0. 
org.apache.camel.component.seda.QueueComponent
          This component has been deprecated; please use the seda: URI format instead of queue: 
org.apache.camel.model.ServiceActivationType
          will be removed in Camel 2.0 
 

Deprecated Exceptions
org.apache.camel.InvalidHeaderTypeException
          use InvalidTypeException. Will be removed in Camel 2.0. 
 

Deprecated Fields
org.apache.camel.model.ProcessorType.DEFAULT_TRACE_CATEGORY
          will be removed in Camel 2.0 
 

Deprecated Methods
org.apache.camel.model.ProcessorType.addInterceptor(DelegateProcessor)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.addInterceptor(InterceptorType)
          will be removed in Camel 2.0 
org.apache.camel.CamelContext.addSingletonEndpoint(String, Endpoint)
           
org.apache.camel.builder.ExpressionClause.beanShell(String)
          use language("beanshell", text). Will be removed in Camel 2.0. 
org.apache.camel.model.ProcessorType.convertFaultBodyTo(Class)
          Please use ProcessorType.convertBodyTo(Class) instead. Will be removed in Camel 2.0. 
org.apache.camel.model.ProcessorType.convertOutBodyTo(Class)
          Please use ProcessorType.convertBodyTo(Class) instead. Will be removed in Camel 2.0. 
org.apache.camel.Exchange.copyFrom(Exchange)
          Starting with Camel 2.0.0 you should use Exchange.copy() to get a new instance of an exchange or simply create a new exchange object 
org.apache.camel.model.OptionalIdentifiedType.description(String)
          will be removed in Camel 2.0 
org.apache.camel.model.OptionalIdentifiedType.description(String, String)
          will be removed in Camel 2.0 
org.apache.camel.util.ObjectHelper.equals(Object, Object)
          use the equal method instead. Will be removed in Camel 2.0. 
org.apache.camel.builder.RouteBuilder.exception(Class)
          Please use RouteBuilder.onException(Class) instead. Will be removed in Camel 2.0. 
org.apache.camel.model.ProcessorType.exception(Class)
          Please use ProcessorType.onException(Class) instead. Will be removed in Camel 2.0. 
org.apache.camel.Endpoint.getContext()
           
org.apache.camel.impl.DefaultEndpoint.getContext()
           
org.apache.camel.component.file.FileProducer.getEndpoint()
          will be removed in Camel 2.0. 
org.apache.camel.Exchange.getFault()
          Starting with Camel 2.0.0 you should use Exchange.getOut() and check the #org.apache.camel.Message.isFault() flag 
org.apache.camel.Exchange.getFault(boolean)
          Starting with Camel 2.0.0 you should use Exchange.getOut() and check the #org.apache.camel.Message.isFault() flag 
org.apache.camel.processor.RedeliveryPolicy.getInitialRedeliveryDelay()
          use delay instead. Will be removed in Camel 2.0. 
org.apache.camel.Exchange.getOut(boolean)
          Starting with Camel 2.0.0 you should only use Exchange.getOut() 
org.apache.camel.model.TryType.handleAll()
          Use TryType.finallyBlock() instead, as the name is better. Current name sugests that it handles exception, while it mimics java finally keyword. Will be removed in Camel 2.0. 
org.apache.camel.util.URISupport.indexOfParenthesisMatch(String)
          this method will be removed in Camel 2.0. 
org.apache.camel.processor.RedeliveryPolicy.initialRedeliveryDelay(long)
          use delay. Will be removed in Camel 2.0. 
org.apache.camel.model.ProcessorType.intercept(DelegateProcessor)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.intercept(InterceptorType)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.interceptor(String)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.interceptors(String...)
          will be removed in Camel 2.0 
org.apache.camel.util.ObjectHelper.isNotNullAndNonEmpty(String)
          will be removed in Camel 2.0 - use isNotEmpty() instead 
org.apache.camel.util.ObjectHelper.isNullOrBlank(String)
          will be removed in Camel 2.0 - use isEmpty() instead 
org.apache.camel.converter.ObjectConverter.iterator(Object)
          use ObjectHelper.createIterator(Object). Will be removed in Camel 2.0. 
org.apache.camel.builder.ValueBuilder.matchesRegex(String)
          use ValueBuilder.regex(String). Will be removed in Camel 2.0 
org.apache.camel.Exchange.newInstance()
          Starting with Camel 2.0.0 you should use Exchange.copy() to get a new instance of an exchange or simply create a new exchange object 
org.apache.camel.CamelContext.removeSingletonEndpoint(String)
           
org.apache.camel.impl.DefaultUnitOfWork.reset()
          will be removed in Camel 2.0 
org.apache.camel.component.file.FileConsumer.setAlwaysConsume(boolean)
          will be removed in Camel 2.0 (not needed when we get rid of last polltimestamp) 
org.apache.camel.Endpoint.setContext(CamelContext)
           
org.apache.camel.impl.DefaultEndpoint.setContext(CamelContext)
           
org.apache.camel.converter.jaxp.StringSource.setEncoding(String)
          will be removed in Camel 2.0 
org.apache.camel.component.file.FileEndpoint.setExcludedNamePostfixes(String[])
          use ExcludedNamePostfix. Will be removed in Camel 2.0. 
org.apache.camel.component.file.FileEndpoint.setExcludedNamePrefixes(String[])
          use ExcludedNamePrefix. Will be removed in Camel 2.0. 
org.apache.camel.component.file.FileConsumer.setGenerateEmptyExchangeWhenIdle(boolean)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.setHeader(String, String)
          Please use ProcessorType.setHeader(String, Expression) instead. Will be removed in Camel 2.0. 
org.apache.camel.processor.RedeliveryPolicy.setInitialRedeliveryDelay(long)
          use delay instead. Will be removed in Camel 2.0. 
org.apache.camel.component.bean.BeanProcessor.setMethodName(String)
          use BeanProcessor.setMethod(String). Will be removed in Camel 2.0. 
org.apache.camel.model.ProcessorType.setOutBody()
          Please use ProcessorType.transform() instead. Will be removed in Camel 2.0. 
org.apache.camel.model.ProcessorType.setOutBody(Expression)
          Please use ProcessorType.transform(Expression) instead. Will be removed in Camel 2.0. 
org.apache.camel.CamelContext.setRoutes(List)
          is considered for deprecation, use addRoutes instead, could be removed in Camel 2.0 
org.apache.camel.converter.jaxp.StringSource.setText(String)
          will be removed in Camel 2.0 
org.apache.camel.component.file.FileConsumer.setTimestamp(boolean)
          will be removed in Camel 2.0 (not needed when we get rid of last polltimestamp) 
org.apache.camel.component.file.FileConsumer.setUnchangedDelay(int)
          will be removed in Camel 2.0 
org.apache.camel.component.file.FileConsumer.setUnchangedSize(boolean)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.throwFault(String)
          will be removed in Camel 2.0 
org.apache.camel.model.ProcessorType.throwFault(Throwable)
          will be removed in Camel 2.0 
org.apache.camel.model.LoadBalanceType.topic()
          will be removed in Camel 2.0, use multicast instead 
org.apache.camel.model.ProcessorType.trace()
          Please use
org.apache.camel.model.ProcessorType.trace(String)
          Please use
Deprecated Constructors
org.apache.camel.processor.interceptor.TraceInterceptor(ProcessorType, Processor, TraceFormatter)
          will be removed in Camel 2.0 
 



Apache CAMEL