A service might or might not be a component in the sense of encapsulated software.
就封装的软件而言,服务可能是一个组件,也可能不是一个组件。
Further, recommending code that lets you ask an entity EJB component to "give me a DTO of yourself" seems reasonable and well encapsulated.
此外,推荐的代码看起来非常合理,并得到了良好封装,能够让您要求实体e JB组件“给我一个您自己的DTO”。
Since component implementation is about behavior, technically, it is often useful to use an interpreter encapsulated inside the component.
既然从技术上讲,组件实现就是与行为有关,因此通常来说使用封装在组件内部的解释器是有效的。
应用推荐