Library code related to article: Exploiting Static Exception Checking in Asynchronous Java Code.
Notes:
- Code is commented only where strictly needed; comments are in Italian.
- Needs the Javassist library to compile and execute.
Package organization:
- it.weswit.topdownchain
Core library. - it.weswit.topdownchain.redirection
Optional extensions to adapt common APIs to the library interface. - it.weswit.topdownchain.mock
Simple alternative versions of some common APIs that help simplify the tests. - it.weswit.topdownchain.test
Various test programs; in particular:
Usage.java shows the syntax examples in the article (not for running);
UnitTest.java tests all combinations of try-catch-finally cases;
Example.java tests a chain made up of several different stages;
Sample.java tests the concrete example reported in chapter 6.