public class DeferServiceStartupListener extends Object implements org.apache.camel.StartupListener, org.apache.camel.Ordered
StartupListener
that defers starting Service
s, 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) |
int |
getOrder() |
void |
onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
public void addService(org.apache.camel.Service service)
public void onCamelContextStarted(org.apache.camel.CamelContext context, boolean alreadyStarted) throws Exception
onCamelContextStarted
in interface org.apache.camel.StartupListener
Exception
public int getOrder()
getOrder
in interface org.apache.camel.Ordered
Apache Camel