public class JpaCloseEntityManagerOnCompletion extends SynchronizationAdapter
Constructor and Description |
---|
JpaCloseEntityManagerOnCompletion(javax.persistence.EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder()
Gets the order.
|
void |
onDone(Exchange exchange) |
allowHandover, onAfterRoute, onBeforeRoute, onComplete, onFailure
public JpaCloseEntityManagerOnCompletion(javax.persistence.EntityManager entityManager)
public void onDone(Exchange exchange)
onDone
in class SynchronizationAdapter
public int getOrder()
Ordered
Use low numbers for higher priority. Normally the sorting will start from 0 and move upwards.
So if you want to be last then use Integer.MAX_VALUE
or eg Ordered.LOWEST
.
getOrder
in interface Ordered
getOrder
in class SynchronizationAdapter
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.