实际上,您可能需要公开接口方法,例如addinventory (Product item)用来重新储存产品。
In reality, you would need to expose an interface method, such as addInventory (product item), to restock a product.
最后,利用框架上下文接口公开一个启动方法,从而将延迟获取模式应用在服务的初始化中。
Finally, lazy acquisition pattern was applied to the initialization of services by exposing a startup method with the framework context interface.
将所有的规则封装在服务facade接口中,每个规则作为一个方法公开。
All rules are wrapped in a service facade interface, with each rule exposed as a method.
应用推荐