org.apache.camel
Class Route<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.Route<E>
Direct Known Subclasses:
EventDrivenConsumerRoute, PollingConsumerRoute

public abstract class Route<E extends Exchange>
extends Object

A Route defines the processing used on an inbound message exchange from a specific Endpoint within a CamelContext

Version:
$Revision: 541693 $

Constructor Summary
Route(Endpoint<E> endpoint)
           
 
Method Summary
protected abstract  void addServices(List<Service> services)
          Strategy method to allow derived classes to lazily load services for the route
 Endpoint<E> getEndpoint()
           
 Map<String,Object> getProperties()
          This property map is used to associate information about the route.
 List<Service> getServices()
          Returns the additional services required for this particular route
 List<Service> getServicesForRoute()
           
 void setEndpoint(Endpoint<E> endpoint)
           
 void setServices(List<Service> services)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Route

public Route(Endpoint<E> endpoint)
Method Detail

getEndpoint

public Endpoint<E> getEndpoint()

setEndpoint

public void setEndpoint(Endpoint<E> endpoint)

getProperties

public Map<String,Object> getProperties()
This property map is used to associate information about the route.

Returns:

getServicesForRoute

public List<Service> getServicesForRoute()
                                  throws Exception
Throws:
Exception

getServices

public List<Service> getServices()
                          throws Exception
Returns the additional services required for this particular route

Throws:
Exception

setServices

public void setServices(List<Service> services)

addServices

protected abstract void addServices(List<Service> services)
                             throws Exception
Strategy method to allow derived classes to lazily load services for the route

Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.