|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.spring.spi.SpringTransactionPolicy
public class SpringTransactionPolicy
Wraps the processor in a Spring transaction
| Constructor Summary | |
|---|---|
SpringTransactionPolicy()
Default constructor for easy spring configuration. |
|
SpringTransactionPolicy(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
|
SpringTransactionPolicy(org.springframework.transaction.support.TransactionTemplate template)
|
|
| Method Summary | |
|---|---|
void |
beforeWrap(RouteContext routeContext,
ProcessorDefinition<?> definition)
Hook invoked before the wrap. |
protected TransactionErrorHandler |
createTransactionErrorHandler(RouteContext routeContext,
Processor processor,
ErrorHandlerBuilder builder)
|
String |
getPropagationBehaviorName()
|
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
|
org.springframework.transaction.support.TransactionTemplate |
getTransactionTemplate()
|
void |
setPropagationBehaviorName(String propagationBehaviorName)
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
|
void |
setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate template)
|
Processor |
wrap(RouteContext routeContext,
Processor processor)
Wraps any applicable interceptors around the given processor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringTransactionPolicy()
public SpringTransactionPolicy(org.springframework.transaction.support.TransactionTemplate template)
public SpringTransactionPolicy(org.springframework.transaction.PlatformTransactionManager transactionManager)
| Method Detail |
|---|
public void beforeWrap(RouteContext routeContext,
ProcessorDefinition<?> definition)
Policydefiniton
beforeWrap in interface PolicyrouteContext - the route contextdefinition - the processor definition
public Processor wrap(RouteContext routeContext,
Processor processor)
Policy
wrap in interface PolicyrouteContext - the route contextprocessor - the processor to be intercepted
protected TransactionErrorHandler createTransactionErrorHandler(RouteContext routeContext,
Processor processor,
ErrorHandlerBuilder builder)
public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate template)
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public void setPropagationBehaviorName(String propagationBehaviorName)
public String getPropagationBehaviorName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||