The descriptor points to the implementation of the component, in this case a class file, and also includes any configuration information that the component needs.
描述符指向组件的实现,在这种情况下是一个类文件,还包含组件需要的任何配置信息。
Rather than directly instantiating an object of a plug-in class, plug-ins are attached to a component using the "plugins" configuration option for that component.
插件的使用并不是直接初始化插件类的一个对象,而是使用该组件的“plugins”配置选项将插件附加到这个组件上。
The advantage is that you only focus on writing business methods in your component class and let the life cycle of the component be handled by Spring configuration files.
这样做的优势在于,只需将重点放在编写组件类中的业务方法上,而由 Spring 配置文件处理组件的生命周期。
应用推荐