| 123456789101112131415161718192021222324252627282930313233343536 |
- <?xml version="1.0" encoding="GB2312"?>
- <plugin name="WCM文档索引" version="1.0" id="wcm.index">
- <!-- plugin的name是自己定义的名称,一般不与其他config.xml的name相同;version是固定的;id是config.xml的id,必须保证其唯一性,与对应的beans.xml中的id一致。 -->
- <!--Config For ObjectLCMonitor BEGIN-->
- <!--
- Listener默认为监控对象的新增、修改、删除前
- EventType:
- 1:新增
- 2:修改后
- 3:删除前
- 4、删除后
- 5、修改前
- -1、新增前
- 多个以逗号隔开
- -->
- <!-- 这里extension中的element-class和id是不变的;monitor-host中的class-name是指要监听的实体类对象的类名(包含包名),name是根据监听的实体类对象所取的名字;listener中的bean-id是监听器的id,一般用类名表示,他对应bean.xml文件中bean节点的id;event-type指定监听对象的哪些操作。-->
- <extension
- element-class="com.trs.infra.persistent.listener.MonitorHostConfig"
- id="components.wcm.content.ObjectLCMonitor">
- <!--文档-->
- <monitor-host name="chnldoc"
- class-name="com.trs.components.wcm.content.persistent.ChnlDoc">
- <listener bean-id="ChnlDocLCListenerForIndex" event-type="1,2,3,4"/>
- <!--可以跟着配置多个listener-->
- </monitor-host>
- </extension>
- <!--Config For Server BEGIN-->
- <extension element-class="com.trs.infra.ServerConfig" id="Server">
- <server bean-id="IndexServer" name="Lucene数据库缓存索引启动提交器" />
- </extension>
- <!--Config For Server END-->
- </plugin>
|