Skip to content

Instantly share code, notes, and snippets.

View stefanofago73's full-sized avatar
💭
Software Designer, I like to build software, a little tormented soul

Stefano Fago stefanofago73

💭
Software Designer, I like to build software, a little tormented soul
View GitHub Profile
@stefanofago73
stefanofago73 / handler_ecosys_prototype.java
Last active February 10, 2026 16:04
Handlers: Some design experiments
//
// 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