INT-1849/INT-2147 Add Disposition to File Adapter
* Add *disposition-expression* to the inbound file adapter. This allows for operations such as *payload.delete()*, *payload.renameTo()* after the file is processed. * The result of executing the expression (if any) is sent to the disposition-result-channel.
This commit is contained in:
committed by
Gunnar Hillert
parent
703122a6fb
commit
066eb91100
@@ -60,7 +60,7 @@ public class PseudoTransactionalMessageSourceTests {
|
||||
assertTrue(rolledBack);
|
||||
}
|
||||
|
||||
public static class MessageSource implements PseudoTransactionalMessageSource<String> {
|
||||
public static class MessageSource implements PseudoTransactionalMessageSource<String, Object> {
|
||||
|
||||
public Message<String> receive() {
|
||||
if (doRollback) {
|
||||
@@ -83,5 +83,11 @@ public class PseudoTransactionalMessageSourceTests {
|
||||
latch2.countDown();
|
||||
}
|
||||
|
||||
public void afterReceiveNoTx(Object resource) {
|
||||
}
|
||||
|
||||
public void afterSendNoTx(Object resource) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user