|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultRoute
public abstract class DefaultRoute
Default implementation of Route.
| Field Summary |
|---|
| Fields inherited from interface org.apache.camel.Route |
|---|
GROUP_PROPERTY, ID_PROPERTY, PARENT_PROPERTY |
| Constructor Summary | |
|---|---|
DefaultRoute(RouteContext routeContext,
Endpoint endpoint)
|
|
DefaultRoute(RouteContext routeContext,
Endpoint endpoint,
Service... services)
|
|
| Method Summary | |
|---|---|
void |
addService(Service service)
Adds a service to this route |
protected void |
addServices(List<Service> services)
Strategy method to allow derived classes to lazily load services for the route |
protected void |
doStart()
|
protected void |
doStop()
|
Endpoint |
getEndpoint()
Gets the inbound endpoint |
String |
getId()
Gets the route id |
Map<String,Object> |
getProperties()
This property map is used to associate information about the route. |
RouteContext |
getRouteContext()
Gets the route context |
List<Service> |
getServices()
Returns the services for this particular route |
void |
onStartingServices(List<Service> services)
A strategy callback allowing special initialization when services is starting. |
String |
toString()
|
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Route |
|---|
getConsumer, navigate, supportsSuspension |
| Constructor Detail |
|---|
public DefaultRoute(RouteContext routeContext,
Endpoint endpoint)
public DefaultRoute(RouteContext routeContext,
Endpoint endpoint,
Service... services)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getId()
Route
getId in interface Routepublic Endpoint getEndpoint()
Route
getEndpoint in interface Routepublic RouteContext getRouteContext()
Route
getRouteContext in interface Routepublic Map<String,Object> getProperties()
Route
getProperties in interface Route
public void onStartingServices(List<Service> services)
throws Exception
Route
onStartingServices in interface Routeservices - the service
Exception - is thrown in case of errorpublic List<Service> getServices()
Route
getServices in interface Routepublic void addService(Service service)
Route
addService in interface Routeservice - the service
protected void addServices(List<Service> services)
throws Exception
Exception
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||