Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Facade {
- handleSomeUC(args) {
- SomeUCContext ctx = createSomeUCCtx(args)
- ctx = serviceA.doStuff1(ctx);
- ctx.fieldX = true;
- ctx = serviceB.doStuff2(ctx);
- }
- }
- public class ServiceB {
- SomeUCContext doStuff2(SomeUCContext ctx) {
- ctx.fieldY = fkn1(ctx.fieldK)
- return ctx;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement