|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorDefinition<Type>
org.apache.camel.model.OutputDefinition<ProcessorDefinition>
org.apache.camel.model.BeanDefinition
public class BeanDefinition
Represents an XML <bean/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.OutputDefinition |
|---|
outputs |
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
BeanDefinition()
|
|
BeanDefinition(String ref)
|
|
BeanDefinition(String ref,
String method)
|
|
| Method Summary | |
|---|---|
BeanDefinition |
bean(Object bean)
Sets the bean's instance that camel to call |
BeanDefinition |
beanType(Class beanType)
Sets the Class of the bean that camel will instantiation it for calling |
Processor |
createProcessor(RouteContext routeContext)
|
Class |
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)
Sets the calling method name of camel bean |
BeanDefinition |
ref(String ref)
Sets the ref String on camel bean |
void |
setBean(Object bean)
|
void |
setBeanType(Class beanType)
|
void |
setMethod(String method)
|
void |
setRef(String ref)
|
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OutputDefinition |
|---|
configureChild, getOutputs, setOutputs |
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, 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 Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<ProcessorDefinition>public String getRef()
public void setRef(String ref)
public String getMethod()
public void setMethod(String method)
public void setBean(Object bean)
public Class getBeanType()
public void setBeanType(Class beanType)
public BeanDefinition ref(String ref)
ref - the bean's id in the registry
public BeanDefinition method(String method)
method - the bean's method name which wants camel to call
public BeanDefinition bean(Object bean)
bean in class ProcessorDefinition<ProcessorDefinition>bean - the instance of the bean
public BeanDefinition beanType(Class beanType)
beanType - the Class of the bean
public Processor createProcessor(RouteContext routeContext)
createProcessor in class ProcessorDefinition<ProcessorDefinition>public String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<ProcessorDefinition>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||