开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜