mbeans.xml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to Jasig under one or more contributor license
  4. agreements. See the NOTICE file distributed with this work
  5. for additional information regarding copyright ownership.
  6. Jasig licenses this file to you under the Apache License,
  7. Version 2.0 (the "License"); you may not use this file
  8. except in compliance with the License. You may obtain a
  9. copy of the License at the following location:
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <beans xmlns="http://www.springframework.org/schema/beans"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xmlns:p="http://www.springframework.org/schema/p"
  21. xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">
  22. <description>
  23. Configuration for the MBeans to support JMX.
  24. </description>
  25. <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
  26. <property name="assembler" ref="assembler"/>
  27. <property name="namingStrategy" ref="namingStrategy"/>
  28. <property name="autodetect" value="true"/>
  29. </bean>
  30. <bean id="jmxAttributeSource" class="org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource"/>
  31. <!-- will create management interface using annotation metadata -->
  32. <bean id="assembler"
  33. class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
  34. <property name="attributeSource" ref="jmxAttributeSource"/>
  35. </bean>
  36. <!-- will pick up the ObjectName from the annotation -->
  37. <bean id="namingStrategy"
  38. class="org.springframework.jmx.export.naming.MetadataNamingStrategy">
  39. <property name="attributeSource" ref="jmxAttributeSource"/>
  40. </bean>
  41. <bean id="reloadbleServicesManagerMBean" class="org.jasig.cas.services.jmx.ReloadableServicesManagerMBean">
  42. <constructor-arg index="0" ref="servicesManager" />
  43. </bean>
  44. </beans>