@UriEndpoint(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, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public BeanEndpoint()
public BeanEndpoint(String endpointUri, Component component, BeanProcessor processor)
public BeanEndpoint(String endpointUri, Component component)
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
public BeanProcessor getProcessor()
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultEndpoint
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.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 DefaultEndpoint
Exception
ServiceSupport.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()
DefaultEndpoint
createEndpointUri
in class DefaultEndpoint
Apache Camel