org.apache.camel.impl
Class RouteContext

java.lang.Object
  extended by org.apache.camel.impl.RouteContext

public class RouteContext
extends Object

The context used to activate new routing rules

Version:
$Revision: 36321 $

Constructor Summary
RouteContext(CamelContext camelContext)
          Only used for lazy construction from inside ExpressionType
RouteContext(RouteType route, FromType from, Collection<Route> routes)
           
 
Method Summary
 void addEventDrivenProcessor(Processor processor)
           
 void commit()
          Lets complete the route creation, creating a single event driven route for the current from endpoint with any processors required
 Processor createProceedProcessor()
           
 Processor createProcessor(ProcessorType node)
           
 CamelContext getCamelContext()
           
 Endpoint<? extends Exchange> getEndpoint()
           
 FromType getFrom()
           
 RouteType getRoute()
           
 void intercept(Interceptor interceptor)
           
<T> T
lookup(String name, Class<T> type)
          lookup an object by name and type
 Endpoint<? extends Exchange> resolveEndpoint(String uri)
           
 Endpoint<? extends Exchange> resolveEndpoint(String uri, String ref)
          Resolves an endpoint from either a URI or a named reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteContext

public RouteContext(RouteType route,
                    FromType from,
                    Collection<Route> routes)

RouteContext

public RouteContext(CamelContext camelContext)
Only used for lazy construction from inside ExpressionType

Method Detail

getEndpoint

public Endpoint<? extends Exchange> getEndpoint()

getFrom

public FromType getFrom()

getRoute

public RouteType getRoute()

getCamelContext

public CamelContext getCamelContext()

createProcessor

public Processor createProcessor(ProcessorType node)
                          throws Exception
Throws:
Exception

resolveEndpoint

public Endpoint<? extends Exchange> resolveEndpoint(String uri)

resolveEndpoint

public Endpoint<? extends Exchange> resolveEndpoint(String uri,
                                                    String ref)
Resolves an endpoint from either a URI or a named reference


lookup

public <T> T lookup(String name,
                    Class<T> type)
lookup an object by name and type


commit

public void commit()
Lets complete the route creation, creating a single event driven route for the current from endpoint with any processors required


addEventDrivenProcessor

public void addEventDrivenProcessor(Processor processor)

intercept

public void intercept(Interceptor interceptor)

createProceedProcessor

public Processor createProceedProcessor()


Copyright © 2008 IONA Open Source Community. All Rights Reserved.