public class DeferServiceStartupListener extends Object implements org.apache.camel.StartupListener, org.apache.camel.Ordered
StartupListener that defers starting Services, until as late as possible during
the startup process of CamelContext.| Constructor and Description |
|---|
DeferServiceStartupListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addService(org.apache.camel.Service service,
boolean startEarly) |
protected void |
doStart(Set<org.apache.camel.Service> services,
org.apache.camel.CamelContext context,
boolean alreadyStarted) |
int |
getOrder() |
void |
onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
void |
onCamelContextStarting(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
public void addService(org.apache.camel.Service service,
boolean startEarly)
public void onCamelContextStarting(org.apache.camel.CamelContext context,
boolean alreadyStarted)
throws Exception
onCamelContextStarting in interface org.apache.camel.StartupListenerExceptionpublic void onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted)
throws Exception
onCamelContextStarted in interface org.apache.camel.StartupListenerExceptionprotected void doStart(Set<org.apache.camel.Service> services, org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception
Exceptionpublic int getOrder()
getOrder in interface org.apache.camel.OrderedApache Camel