|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition
org.apache.camel.model.ProcessorDefinition<Type>
org.apache.camel.model.OutputDefinition<TransactedDefinition>
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.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
TransactedDefinition()
|
|
TransactedDefinition(Policy policy)
|
Method Summary | |
---|---|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
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 |
boolean |
isAbstract()
Whether this model is abstract or not. |
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 definition should scope within. |
String |
toString()
|
Methods inherited from class org.apache.camel.model.OutputDefinition |
---|
getOutputs, isOutputSupported, setOutputs |
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 |
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 OutputDefinition<TransactedDefinition>
protected String description()
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OutputDefinition<TransactedDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in class ProcessorDefinition<TransactedDefinition>
public boolean isAbstract()
ProcessorDefinition
isAbstract
in class ProcessorDefinition<TransactedDefinition>
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
ProcessorDefinition
createProcessor
in class ProcessorDefinition<TransactedDefinition>
Exception
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 |