This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Maybe we can use Operation instead of Handler? | |
| // | |
| @FunctionalInterface | |
| public interface Handler<I, O> { | |
| Result<O> handle(I request, ServiceContext context); | |
| } | |
| // | |
| // The classic view of a decoration, can be done in FP style and using only interface |