|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<Type> org.apache.camel.model.ProcessorDefinition<Type> org.apache.camel.model.NoOutputDefinition<BeanDefinition> org.apache.camel.model.BeanDefinition
public class BeanDefinition
Represents an XML <bean/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
BeanDefinition()
|
|
BeanDefinition(String ref)
|
|
BeanDefinition(String ref,
String method)
|
Method Summary | |
---|---|
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 |
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()
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
String |
getMethod()
|
String |
getRef()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
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)
|
void |
setBeanType(Class<?> beanType)
|
void |
setBeanType(String beanType)
|
void |
setMethod(String method)
|
void |
setRef(String ref)
|
String |
toString()
|
Methods inherited from class org.apache.camel.model.NoOutputDefinition |
---|
getOutputs, isOutputSupported |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanDefinition()
public BeanDefinition(String ref)
public BeanDefinition(String ref, String method)
Method Detail |
---|
public String toString()
toString
in class Object
public String description()
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<BeanDefinition>
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition<BeanDefinition>
public String getRef()
public void setRef(String ref)
public String getMethod()
public void setMethod(String method)
public void setBean(Object bean)
public String getBeanType()
public void setBeanType(String beanType)
public void setBeanType(Class<?> beanType)
@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
public Processor createProcessor(RouteContext routeContext)
ProcessorDefinition
createProcessor
in class ProcessorDefinition<BeanDefinition>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |