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:
Gary Russell
2012-06-14 17:47:46 -04:00
committed by Gunnar Hillert
parent 703122a6fb
commit 066eb91100
18 changed files with 440 additions and 86 deletions

View File

@@ -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) {
}
}
}