In an ideal world, each functional area such as process services, would be "pure", offering only one class of services in order to provide a separation of concerns.
在理想情况下,每个功能区(如流程服务)都是“纯”功能区,为了实现关注点分离仅提供了一个服务类。
We start with a static method (independent of the class) for setting the user's services in the cache.
首先解释用来在缓存中设置用户服务的静态方法(不依赖于类)。
A responsibility of a class describes the services that this class will provide in our system, and that no other class will provide.
类的职责描述了这个类在系统中所提供的服务,而且其它类不会重复提供这些服务。
应用推荐