@Metadata(label="eip,endpoint") public class BeanDefinition extends NoOutputDefinition<BeanDefinition>
inheritErrorHandler, log| Constructor and Description |
|---|
BeanDefinition() |
BeanDefinition(String ref) |
BeanDefinition(String ref,
String method) |
| Modifier and Type | Method and Description |
|---|---|
BeanDefinition |
bean(Object bean)
Deprecated.
not in use, will be removed in next Camel release
|
BeanDefinition |
beanType(Class<?> beanType)
Deprecated.
not in use, will be removed in next Camel release
|
BeanDefinition |
cache()
Deprecated.
|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
String |
description() |
String |
getBeanType() |
Boolean |
getCache() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
String |
getMethod() |
Boolean |
getMultiParameterArray() |
String |
getRef() |
BeanDefinition |
method(String method)
Deprecated.
not in use, will be removed in next Camel release
|
BeanDefinition |
ref(String ref)
Deprecated.
not in use, will be removed in next Camel release
|
void |
setBean(Object bean)
Sets an instance of the bean to use
|
void |
setBeanType(Class<?> beanType)
Sets the Class of the bean
|
void |
setBeanType(String beanType)
Sets the Class of the bean
|
void |
setCache(Boolean cache)
Caches the bean lookup, to avoid lookup up bean on every usage.
|
void |
setMethod(String method)
Sets the method name on the bean to use
|
void |
setMultiParameterArray(Boolean multiParameterArray)
Deprecated.
is to be replaced with a better solution in Camel 3.0
|
void |
setRef(String ref)
Sets a reference to a bean to use
|
String |
toString() |
getOutputs, isOutputSupportedaddInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, preCreateProcessor, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, script, script, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessordescription, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setIdpublic BeanDefinition()
public BeanDefinition(String ref)
public BeanDefinition(String ref, String method)
public String description()
public String getLabel()
ProcessorDefinitiongetLabel in interface NamedNodegetLabel in class ProcessorDefinition<BeanDefinition>public String getBeanType()
public void setBeanType(String beanType)
public void setBeanType(Class<?> beanType)
public void setCache(Boolean cache)
public Boolean getMultiParameterArray()
@Deprecated public void setMultiParameterArray(Boolean multiParameterArray)
@Deprecated public BeanDefinition ref(String ref)
ref - the bean's id in the registry@Deprecated public BeanDefinition method(String method)
method - the bean's method name which wants camel to call@Deprecated public BeanDefinition bean(Object bean)
bean in class ProcessorDefinition<BeanDefinition>bean - the instance of the bean@Deprecated public BeanDefinition beanType(Class<?> beanType)
beanType - the Class of the bean@Deprecated public BeanDefinition cache()
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinitioncreateProcessor in class ProcessorDefinition<BeanDefinition>ExceptionApache Camel