|
||||||||||
| 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.TransactedDefinition
public class TransactedDefinition
Represents an XML <transacted/> element
| Field Summary | |
|---|---|
static String |
PROPAGATION_REQUIRED
|
protected String |
ref
|
protected Class<? extends Policy> |
type
|
| Fields inherited from class org.apache.camel.model.OutputDefinition |
|---|
outputs |
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
TransactedDefinition()
|
|
TransactedDefinition(Policy policy)
|
|
| Method Summary | |
|---|---|
Processor |
createProcessor(RouteContext routeContext)
|
protected String |
description()
|
protected static Policy |
doResolvePolicy(RouteContext routeContext,
String ref,
Class<? extends Policy> type)
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
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 |
TransactedDefinition |
ref(String ref)
Sets a reference to use for lookup the policy in the registry. |
protected Policy |
resolvePolicy(RouteContext routeContext)
|
void |
setRef(String ref)
|
void |
setType(Class<? extends Policy> type)
Sets a policy type that this defition should scope within. |
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OutputDefinition |
|---|
getOutputs, setOutputs |
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPAGATION_REQUIRED
protected Class<? extends Policy> type
protected String ref
| Constructor Detail |
|---|
public TransactedDefinition()
public TransactedDefinition(Policy policy)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<ProcessorDefinition>public String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<ProcessorDefinition>public String getRef()
public void setRef(String ref)
public void setType(Class<? extends Policy> type)
TransactedPolicy
can be set as type for easy transaction configuration.
Will by default scope to the wide Policy
type - the policy typepublic TransactedDefinition ref(String ref)
ref - the reference
public Processor createProcessor(RouteContext routeContext)
throws Exception
createProcessor in class ProcessorDefinition<ProcessorDefinition>Exceptionprotected String description()
protected Policy resolvePolicy(RouteContext routeContext)
protected static Policy doResolvePolicy(RouteContext routeContext,
String ref,
Class<? extends Policy> type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||