Package org.apache.camel.impl.engine
Class DeferServiceStartupListener
- java.lang.Object
-
- org.apache.camel.impl.engine.DeferServiceStartupListener
-
- All Implemented Interfaces:
org.apache.camel.Ordered,org.apache.camel.StartupListener
public class DeferServiceStartupListener extends Object implements org.apache.camel.StartupListener, org.apache.camel.Ordered
AStartupListenerthat defers startingServices, until as late as possible during the startup process ofCamelContext.
-
-
Constructor Summary
Constructors Constructor Description DeferServiceStartupListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddService(org.apache.camel.Service service, boolean startEarly)protected voiddoStart(Set<org.apache.camel.Service> services, org.apache.camel.CamelContext context, boolean alreadyStarted)intgetOrder()voidonCamelContextStarted(org.apache.camel.CamelContext context, boolean alreadyStarted)voidonCamelContextStarting(org.apache.camel.CamelContext context, boolean alreadyStarted)
-
-
-
Method Detail
-
addService
public void addService(org.apache.camel.Service service, boolean startEarly)
-
onCamelContextStarting
public void onCamelContextStarting(org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception- Specified by:
onCamelContextStartingin interfaceorg.apache.camel.StartupListener- Throws:
Exception
-
onCamelContextStarted
public void onCamelContextStarted(org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception- Specified by:
onCamelContextStartedin interfaceorg.apache.camel.StartupListener- Throws:
Exception
-
doStart
protected void doStart(Set<org.apache.camel.Service> services, org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception
- Throws:
Exception
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.apache.camel.Ordered
-
-