开发者

Using facade pattern with remoting?

开发者 https://www.devze.com 2022-12-20 14:56 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号