org.apache.camel
Interface RouteAware

All Known Implementing Classes:
DataSetConsumer, DefaultConsumer, DefaultScheduledPollConsumer, DirectConsumer, DirectVmConsumer, FileConsumer, GenericFileConsumer, LoadBalancerConsumer, ScheduledBatchPollingConsumer, ScheduledPollConsumer, TimerConsumer

public interface RouteAware

An interface to represent an object which wishes to be injected with a Route such as Consumer which is the consumer for a route.


Method Summary
 Route getRoute()
          Gets the Route
 void setRoute(Route route)
          Injects the Route
 

Method Detail

setRoute

void setRoute(Route route)
Injects the Route

Parameters:
route - the route

getRoute

Route getRoute()
Gets the Route

Returns:
the route, or null if no route has been set.


Apache Camel