public class CamelPlugin extends JPlugin implements org.apache.camel.CamelContextAware, org.apache.camel.ExtendedStartupListener
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
PRODUCER_TEMPLATE |
| Constructor and Description |
|---|
CamelPlugin() |
CamelPlugin(org.apache.camel.CamelContext camelContext) |
CamelPlugin(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(CamelConsumer consumer) |
org.apache.camel.CamelContext |
getCamelContext() |
List<CamelConsumer> |
getConsumers() |
org.apache.camel.CamelContext |
getContext() |
org.apache.camel.ProducerTemplate |
getProducerTemplate() |
String |
getRouteId(org.apache.camel.Exchange exchange) |
boolean |
isWaitForContextFullyStarted() |
SpongeCamelEvent |
makeInputEvent(String name,
org.apache.camel.Exchange exchange) |
void |
onCamelContextFullyStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
void |
onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
void |
onShutdown() |
boolean |
removeConsumer(CamelConsumer consumer) |
Object |
request(String uri,
Object body) |
void |
send(Object body) |
void |
send(String uri,
Object body) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setContext(org.apache.camel.CamelContext camelContext) |
void |
setWaitForContextFullyStarted(boolean waitForContextFullyStarted) |
void |
waitForContextFullyStarted()
Waits for Camel context fully started.
|
doShutdown, doStartup, getConfiguration, getEngineOperations, getEps, getKnowledgeBase, getLogger, onAfterReload, onBeforeReload, onConfigure, onInit, onStartup, setConfiguration, setKnowledgeBase, shutdown, startup, toStringgetEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String NAME
public static final String PRODUCER_TEMPLATE
public CamelPlugin(org.apache.camel.CamelContext camelContext)
public CamelPlugin()
public CamelPlugin(String name)
public org.apache.camel.CamelContext getContext()
public void waitForContextFullyStarted()
public void setContext(org.apache.camel.CamelContext camelContext)
public List<CamelConsumer> getConsumers()
public void addConsumer(CamelConsumer consumer)
public boolean removeConsumer(CamelConsumer consumer)
public SpongeCamelEvent makeInputEvent(String name, org.apache.camel.Exchange exchange)
public void send(Object body)
public org.apache.camel.ProducerTemplate getProducerTemplate()
public String getRouteId(org.apache.camel.Exchange exchange)
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic boolean isWaitForContextFullyStarted()
public void setWaitForContextFullyStarted(boolean waitForContextFullyStarted)
public void onShutdown()
onShutdown in interface org.openksavi.sponge.plugin.PluginonShutdown in class BasePluginpublic void onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted)
throws Exception
onCamelContextStarted in interface org.apache.camel.StartupListenerExceptionCopyright © 2016–2018 Softelnet. All rights reserved.