configuration rules object class 配置规则对象类
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”配置选项将插件附加到这个组件上。
First, we create an NHibernate Configuration object. Then we pass it the class mappings from the mapping files.
首先我们创建一个NHibernate的Configuration对象,通过它来实现从映射文件中映射类。
In both cases you need to declare the dependency (e.g. using the Spring configuration file) and add a corresponding constructor or mutator method to the dependent object class.
在这两种情况下,您都需要声明依赖项(例如使用Spring配置文件),并向依赖对象类添加对应的构造函数或mutator方法。
应用推荐