Using facade pattern with remoting?
I hear about using the facade design pattern with remo开发者_如何转开发ting but I can't see the relation between these 2 concepts or how facade would help in remoting scenarios.
Can anyone shed some light on this?
Thanks
The Facade contains code to implement the remoting, then forwards requests to whatever code handles your "business logic." This means that your business logic code is free of remoting stuff. This keeps it simpler and also lets you use the code in non-remote contexts, e.g. in unit tests or with a GUI front-end.
精彩评论