设计模式倾向于定位在特定问题域上,而反模式就可以更具普遍性。
While design patterns tend to target very specific problem domains, antipatterns can be more general.
除了定位反模式,并了解如何修复解决方案,您还需要知道如何用ocl详述解决方案。
In addition to spotting the anti-pattern and knowing how to fix the solution, you also need to know how to detail the solution using OCL.
象反,服务定位器假设结果句柄和错误句柄将属于调用服务的类。
Instead the service Locator assumes that the result handler and the fault handler will belong to the class calling the service.
应用推荐