@UriEndpoint(firstVersion="1.0.0",
scheme="bean",
title="Bean",
syntax="bean:beanName",
producerOnly=true,
label="core,java")
public class BeanEndpoint
extends org.apache.camel.support.DefaultEndpoint
Constructor and Description |
---|
BeanEndpoint() |
BeanEndpoint(String endpointUri,
org.apache.camel.Component component) |
BeanEndpoint(String endpointUri,
org.apache.camel.Component component,
BeanProcessor processor) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected String |
createEndpointUri() |
org.apache.camel.Producer |
createProducer() |
protected void |
doStart() |
protected void |
doStop() |
BeanHolder |
getBeanHolder() |
String |
getBeanName() |
Boolean |
getCache() |
String |
getMethod() |
Map<String,Object> |
getParameters() |
BeanProcessor |
getProcessor() |
boolean |
isCache() |
void |
setBeanHolder(BeanHolder beanHolder) |
void |
setBeanName(String beanName)
Sets the name of the bean to invoke
|
void |
setCache(Boolean cache)
If enabled, Camel will cache the result of the first Registry look-up.
|
void |
setMethod(String method)
Sets the name of the method to invoke on the bean
|
void |
setParameters(Map<String,Object> parameters)
Used for configuring additional properties on the bean
|
configureConsumer, configurePollingConsumer, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
build, doBuild, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public BeanEndpoint()
public BeanEndpoint(String endpointUri, org.apache.camel.Component component, BeanProcessor processor)
public BeanEndpoint(String endpointUri, org.apache.camel.Component component)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public BeanProcessor getProcessor()
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultEndpoint
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultEndpoint
Exception
public String getBeanName()
public void setBeanName(String beanName)
public boolean isCache()
public Boolean getCache()
public void setCache(Boolean cache)
public String getMethod()
public void setMethod(String method)
public BeanHolder getBeanHolder()
public void setBeanHolder(BeanHolder beanHolder)
public void setParameters(Map<String,Object> parameters)
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.support.DefaultEndpoint
Apache Camel