public class BeanComponent extends UriEndpointComponent
Registry
and use that to handle message dispatching.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
BeanComponent() |
Modifier and Type | Method and Description |
---|---|
ProcessorEndpoint |
createEndpoint(Object bean)
A helper method to create a new endpoint from a bean with a generated URI
|
ProcessorEndpoint |
createEndpoint(Object bean,
String uri)
A helper method to create a new endpoint from a bean with a given URI
|
protected BeanEndpoint |
createEndpoint(String uri,
BeanProcessor processor) |
protected Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
protected void |
doShutdown()
Implementations override this method to perform customized shutdown.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public BeanComponent()
public ProcessorEndpoint createEndpoint(Object bean)
public ProcessorEndpoint createEndpoint(Object bean, String uri)
protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponent
createEndpoint
in class DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
- is thrown if error creating the endpointprotected BeanEndpoint createEndpoint(String uri, BeanProcessor processor)
protected void doShutdown() throws Exception
ServiceSupport
doShutdown
in class ServiceSupport
Exception
Apache Camel