org.apache.camel.support
Class ChildServiceSupport

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.support.ChildServiceSupport
All Implemented Interfaces:
Service, ShutdownableService, StatefulService, SuspendableService
Direct Known Subclasses:
ErrorHandlerSupport, RouteService

public abstract class ChildServiceSupport
extends ServiceSupport


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
ChildServiceSupport()
           
 
Method Summary
protected  void addChildService(Object childService)
           
protected  boolean removeChildService(Object childService)
           
 void shutdown()
          Shutdown the service, which means it cannot be started again.
 void start()
          Starts the service
 void start(boolean startChildren)
           
 void stop()
          Stops the service
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doStart, doStop, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChildServiceSupport

public ChildServiceSupport()
Method Detail

start

public void start()
           throws Exception
Description copied from interface: Service
Starts the service

Specified by:
start in interface Service
Overrides:
start in class ServiceSupport
Throws:
Exception - is thrown if starting failed

start

public void start(boolean startChildren)
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Description copied from interface: Service
Stops the service

Specified by:
stop in interface Service
Overrides:
stop in class ServiceSupport
Throws:
Exception - is thrown if stopping failed

shutdown

public void shutdown()
              throws Exception
Description copied from interface: ShutdownableService
Shutdown the service, which means it cannot be started again.

Specified by:
shutdown in interface ShutdownableService
Overrides:
shutdown in class ServiceSupport
Throws:
Exception - thrown if shutting down failed

addChildService

protected void addChildService(Object childService)

removeChildService

protected boolean removeChildService(Object childService)


Apache CAMEL