|
||||||||||
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(java.util.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 |
java.lang.String |
getId()
Gets the route id |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
This property map is used to associate information about the route. |
RouteContext |
getRouteContext()
Gets the route context |
java.util.List<Service> |
getServices()
Returns the services for this particular route |
void |
onStartingServices(java.util.List<Service> services)
A strategy callback allowing special initialization when services is starting. |
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
Route
getId
in interface Route
public Endpoint getEndpoint()
Route
getEndpoint
in interface Route
public RouteContext getRouteContext()
Route
getRouteContext
in interface Route
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Route
getProperties
in interface Route
public void onStartingServices(java.util.List<Service> services) throws java.lang.Exception
Route
onStartingServices
in interface Route
services
- the service
java.lang.Exception
- is thrown in case of errorpublic java.util.List<Service> getServices()
Route
getServices
in interface Route
public void addService(Service service)
Route
addService
in interface Route
service
- the serviceprotected void addServices(java.util.List<Service> services) throws java.lang.Exception
java.lang.Exception
protected void doStart() throws java.lang.Exception
doStart
in class ServiceSupport
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class ServiceSupport
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |