config.xml 1.3 KB

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