mapping.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0" encoding="GB2312"?>
  2. <mapping>
  3. <description>the Mapping of the infrastructure</description>
  4. <class name="com.trs.infra.support.cache.CacheMgrConfig" identity="beanId"
  5. auto-complete="true">
  6. <map-to xml="cache-manager"/>
  7. <field name="beanId">
  8. <bind-xml name="beanId" node="attribute"/>
  9. </field>
  10. <field name="name">
  11. <bind-xml name="name" node="attribute"/>
  12. </field>
  13. </class>
  14. <class name="com.trs.infra.persistent.cache.CachedObjectConfig"
  15. identity="className" auto-complete="true">
  16. <map-to xml="cached-object"/>
  17. <field name="Name">
  18. <bind-xml name="Name" node="attribute"/>
  19. </field>
  20. <field name="ClassName">
  21. <bind-xml name="ClassName" node="attribute"/>
  22. </field>
  23. </class>
  24. <class name="com.trs.infra.persistent.ObjectTypeConfig"
  25. identity="className" auto-complete="true">
  26. <map-to xml="object-type"/>
  27. <field name="name">
  28. <bind-xml name="name" node="attribute"/>
  29. </field>
  30. <field name="ObjectType">
  31. <bind-xml name="ObjectType" node="attribute"/>
  32. </field>
  33. <field name="ObjectClassName">
  34. <bind-xml name="ObjectClassName" node="attribute"/>
  35. </field>
  36. </class>
  37. <class name="com.trs.infra.update.UpdateCommanderConfig"
  38. identity="ClassName">
  39. <map-to xml="update-commander"/>
  40. <field name="name">
  41. <bind-xml name="Name" node="attribute"/>
  42. </field>
  43. <field name="CommanderClassName">
  44. <bind-xml name="ClassName" node="attribute"/>
  45. </field>
  46. </class>
  47. <!--Mapping for Server Config BEGIN-->
  48. <class name="com.trs.infra.ServerConfig" identity="beanId">
  49. <map-to xml="server"/>
  50. <field name="beanId">
  51. <bind-xml name="bean-id" node="attribute"/>
  52. </field>
  53. <field name="name">
  54. <bind-xml name="name" node="attribute"/>
  55. </field>
  56. </class>
  57. <!--Mapping for Server Config END-->
  58. <!--Mapping for SMTPServer Server Config BEGIN-->
  59. <class name="com.trs.infra.util.email.SMTPServerConfigs"
  60. identity="defaultSMTPServer">
  61. <map-to xml="smtp-servers"/>
  62. <field name="defaultSMTPServer">
  63. <bind-xml name="default" node="attribute"/>
  64. </field>
  65. <field name="sMTPServerConfigColl"
  66. type="com.trs.infra.util.email.SMTPServerConfig"
  67. collection="collection">
  68. <bind-xml auto-naming="deriveByClass"/>
  69. </field>
  70. </class>
  71. <class name="com.trs.infra.util.email.SMTPServerConfig" identity="name">
  72. <map-to xml="smtp-server"/>
  73. <field name="name">
  74. <bind-xml name="name" node="attribute"/>
  75. </field>
  76. <field name="port" type="integer">
  77. <bind-xml name="port" node="attribute"/>
  78. </field>
  79. <field name="auth" type="boolean">
  80. <bind-xml name="auth" node="attribute"/>
  81. </field>
  82. <field name="userName" >
  83. <bind-xml name="user" node="attribute"/>
  84. </field>
  85. <field name="password" >
  86. <bind-xml name="password" node="attribute"/>
  87. </field>
  88. </class>
  89. <!--Mapping for SMTPServer Server Config END-->
  90. <!--Mapping for ObjectLCMonitor Config BEGIN-->
  91. <class name="com.trs.infra.persistent.listener.MonitorHostConfig"
  92. identity="name">
  93. <map-to xml="monitor-host"/>
  94. <field name="name">
  95. <bind-xml name="name" node="attribute"/>
  96. </field>
  97. <field name="className">
  98. <bind-xml name="class-name" node="attribute"/>
  99. </field>
  100. <field name="listeners"
  101. type="com.trs.infra.persistent.listener.ObjectLCListenerConfig"
  102. collection="collection">
  103. <bind-xml auto-naming="deriveByClass"/>
  104. </field>
  105. </class>
  106. <class name="com.trs.infra.persistent.listener.ObjectLCListenerConfig" identity="beanId">
  107. <map-to xml="listener"/>
  108. <field name="beanId" required="true">
  109. <bind-xml name="bean-id" node="attribute"/>
  110. </field>
  111. <field name="eventType">
  112. <bind-xml name="event-type" node="attribute"/>
  113. </field>
  114. <field name="usedInChildren">
  115. <bind-xml name="used-in-children" node="attribute"/>
  116. </field>
  117. </class>
  118. <!--Mapping for ObjectLCMonitor Config END-->
  119. <!--Mapping for System Collocation BEGIN-->
  120. <class name="com.trs.infra.support.config.SystemCollocationConfig" identity="name">
  121. <map-to xml="config-type"/>
  122. <field name="name">
  123. <bind-xml name="name" node="attribute"/>
  124. </field>
  125. <field name="typeId">
  126. <bind-xml name="type-id" node="attribute" type="integer"/>
  127. </field>
  128. </class>
  129. <!--Mapping for System Collocation BEGIN-->
  130. </mapping>