@UriEndpoint(firstVersion="1.0.0",
scheme="bean",
title="Bean",
syntax="bean:beanName",
producerOnly=true,
label="core,java")
public class BeanEndpoint
extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
BeanEndpoint() |
BeanEndpoint(String endpointUri,
Component component) |
BeanEndpoint(String endpointUri,
Component component,
BeanProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
BeanHolder |
getBeanHolder() |
String |
getBeanName() |
String |
getMethod() |
Map<String,Object> |
getParameters() |
BeanProcessor |
getProcessor() |
boolean |
isCache() |
boolean |
isMultiParameterArray() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
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 |
setMultiParameterArray(boolean mpArray)
Deprecated.
this option is used internally by Camel, and is not intended for end users to use
|
void |
setParameters(Map<String,Object> parameters)
Used for configuring additional properties on the bean
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic BeanEndpoint()
public BeanEndpoint(String endpointUri, Component component, BeanProcessor processor)
public BeanEndpoint(String endpointUri, Component component)
public Producer createProducer() throws Exception
EndpointException - can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpointprocessor - the given processorException - can be thrownpublic boolean isSingleton()
IsSingletonpublic BeanProcessor getProcessor()
protected void doStart() throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class DefaultEndpointExceptionServiceSupport.doStop()protected void doStop() throws Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.doStop in class DefaultEndpointExceptionServiceSupport.doStart()public String getBeanName()
public void setBeanName(String beanName)
public boolean isMultiParameterArray()
@Deprecated public void setMultiParameterArray(boolean mpArray)
public boolean isCache()
public void setCache(boolean cache)
public BeanHolder getBeanHolder()
public void setBeanHolder(BeanHolder beanHolder)
public Map<String,Object> getParameters()
public void setParameters(Map<String,Object> parameters)
protected String createEndpointUri()
DefaultEndpointcreateEndpointUri in class DefaultEndpointApache Camel