Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1.  
  2. public class Facade {
  3.  
  4.  
  5. handleSomeUC(args) {
  6.  
  7. SomeUCContext ctx = createSomeUCCtx(args)
  8.  
  9. ctx = serviceA.doStuff1(ctx);
  10. ctx.fieldX = true;
  11. ctx = serviceB.doStuff2(ctx);
  12. }
  13. }
  14.  
  15. public class ServiceB {
  16.  
  17. SomeUCContext doStuff2(SomeUCContext ctx) {
  18. ctx.fieldY = fkn1(ctx.fieldK)
  19.  
  20. return ctx;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement