Upgrade to Tomcat 8.5.11
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="jmxAdapter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean1">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="jmxAdapter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="namingTest">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<ref bean="metadataAssembler"/>
|
||||
</property>
|
||||
<property name="namingStrategy">
|
||||
<ref bean="metadataNamingStrategy"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.export.annotation.AnnotationTestSubBean">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
<bean id="testInterfaceBean" class="org.springframework.jmx.export.annotation.AnotherAnnotationTestBeanImpl">
|
||||
<property name="bar" value="Init value"/>
|
||||
</bean>
|
||||
|
||||
<bean id="attributeSource" class="org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource"/>
|
||||
|
||||
<bean id="metadataNamingStrategy" class="org.springframework.jmx.export.naming.MetadataNamingStrategy">
|
||||
<property name="attributeSource" ref="attributeSource"/>
|
||||
</bean>
|
||||
|
||||
<bean id="metadataAssembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
|
||||
<property name="attributeSource" ref="attributeSource"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||||
|
||||
<context:mbean-export server="server" />
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean" />
|
||||
|
||||
<context:component-scan base-package="org.springframework.jmx.export.annotation">
|
||||
<context:exclude-filter type="annotation" expression="org.springframework.context.annotation.Configuration" />
|
||||
</context:component-scan>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||||
|
||||
<context:mbean-export server="server" registration="replaceExisting"/>
|
||||
|
||||
<context:property-placeholder/>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
<bean name="testBean4" class="org.springframework.jmx.export.annotation.AnnotationTestBean" lazy-init="true">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
<bean name="testBean5" class="org.springframework.jmx.export.annotation.AnnotationTestBeanFactory"/>
|
||||
|
||||
<bean name="spring:mbean=true" class="org.springframework.jmx.export.TestDynamicMBean" lazy-init="true"/>
|
||||
|
||||
<bean name="spring:mbean=another" class="org.springframework.jmx.export.MBeanExporterTests$Person" lazy-init="true">
|
||||
<property name="name" value="Juergen Hoeller"/>
|
||||
</bean>
|
||||
|
||||
<bean id="notLoadable" class="does.not.exist" lazy-init="true"/>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||||
|
||||
<context:mbean-export server="server"/>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.export.annotation.AnnotationTestBean" lazy-init="true">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler">
|
||||
<property name="notificationInfoMappings">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4">
|
||||
<list>
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</list>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean5">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler">
|
||||
<property name="managedInterfaces">
|
||||
<value>org.springframework.jmx.export.assembler.ICustomJmxBean</value>
|
||||
</property>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler">
|
||||
<property name="interfaceMappings">
|
||||
<props>
|
||||
<prop key="bean:name=testBean4">
|
||||
org.springframework.jmx.export.assembler.IAdditionalTestMethods,
|
||||
org.springframework.jmx.export.assembler.ICustomJmxBean
|
||||
</prop>
|
||||
</props>
|
||||
</property>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans
|
||||
>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="jmxAdapter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="assembler">
|
||||
<ref bean="metadataAssembler"/>
|
||||
</property>
|
||||
<property name="namingStrategy">
|
||||
<ref bean="namingStrategy"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="metadataAssembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
|
||||
<property name="attributeSource">
|
||||
<ref bean="attributeSource"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="namingStrategy" class="org.springframework.jmx.export.naming.MetadataNamingStrategy">
|
||||
<property name="attributeSource">
|
||||
<ref bean="attributeSource"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="attributeSource" class="org.springframework.jmx.export.metadata.AttributesJmxAttributeSource">
|
||||
<property name="attributes">
|
||||
<bean class="org.springframework.metadata.commons.CommonsAttributes"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean3">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<ref bean="metadataAssembler"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="metadataAssembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
|
||||
<property name="attributeSource">
|
||||
<bean class="org.springframework.jmx.export.metadata.AttributesJmxAttributeSource">
|
||||
<property name="attributes">
|
||||
<bean class="org.springframework.metadata.commons.CommonsAttributes"/>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean5" value-ref="testBean"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.MethodExclusionMBeanInfoAssembler">
|
||||
<property name="ignoredMethods" value="dontExposeMe,setSuperman"/>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4" value-ref="testBean"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.MethodExclusionMBeanInfoAssembler">
|
||||
<property name="ignoredMethods" value="setAge,isSuperman,setSuperman,dontExposeMe"/>
|
||||
<property name="ignoredMethodMappings">
|
||||
<props>
|
||||
<prop key="bean:name=testBean5">setAge,isSuperman,setSuperman,dontExposeMe</prop>
|
||||
</props>
|
||||
</property>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
</beans
|
||||
>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4" value-ref="testBean"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.MethodExclusionMBeanInfoAssembler">
|
||||
<property name="ignoredMethodMappings">
|
||||
<props>
|
||||
<prop key="bean:name=testBean4">setAge,isSuperman,setSuperman,dontExposeMe</prop>
|
||||
</props>
|
||||
</property>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
</beans
|
||||
>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4" value-ref="testBean"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.MethodExclusionMBeanInfoAssembler">
|
||||
<property name="ignoredMethodMappings">
|
||||
<props>
|
||||
<prop key="bean:name=testBean5">setAge,isSuperman,setSuperman,dontExposeMe</prop>
|
||||
</props>
|
||||
</property>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name" value="TEST"/>
|
||||
<property name="age" value="100"/>
|
||||
</bean>
|
||||
|
||||
</beans
|
||||
>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean5">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.MethodNameBasedMBeanInfoAssembler">
|
||||
<property name="managedMethods">
|
||||
<value>add,myOperation,getName,setName,getAge</value>
|
||||
</property>
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.MethodNameBasedMBeanInfoAssembler">
|
||||
<property name="methodMappings">
|
||||
<props>
|
||||
<prop key="bean:name=testBean4">
|
||||
getNickName,setNickName,add,myOperation,getName,setName,getAge</prop>
|
||||
</props>
|
||||
</property>
|
||||
<property name="notificationInfoMappings">
|
||||
<map>
|
||||
<entry key="bean:name=testBean4">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans
|
||||
>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
<beans>
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter" autowire="byName">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean1">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="assembler">
|
||||
<bean class="org.springframework.jmx.export.assembler.SimpleReflectiveMBeanInfoAssembler">
|
||||
<property name="notificationInfos">
|
||||
<bean class="org.springframework.jmx.export.metadata.ManagedNotification">
|
||||
<property name="name" value="My Notification"/>
|
||||
<property name="description" value="A Notification"/>
|
||||
<property name="notificationTypes" value="type.foo,type.bar"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="server" ref="server"/>
|
||||
<property name="autodetect" value="true"/>
|
||||
<property name="excludedBeans" value="connector"/>
|
||||
</bean>
|
||||
|
||||
<bean name="spring:mbean=true" class="org.springframework.jmx.export.TestDynamicMBean" lazy-init="true"/>
|
||||
|
||||
<bean name="spring:mbean=another" class="org.springframework.jmx.export.MBeanExporterTests$Person" lazy-init="true">
|
||||
<property name="name" value="Juergen Hoeller"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="server" ref="server"/>
|
||||
<property name="autodetect" value="true"/>
|
||||
<property name="excludedBeans" value="connector"/>
|
||||
</bean>
|
||||
|
||||
<bean name="spring:mbean=true" class="org.springframework.jmx.export.TestDynamicMBean"/>
|
||||
|
||||
<bean name="spring:mbean2=true" class="org.springframework.jmx.export.TestDynamicMBean"/>
|
||||
|
||||
<bean name="spring:mbean3=true" class="org.springframework.jmx.export.TestDynamicMBean"/>
|
||||
|
||||
<bean id="toBeIgnored" class="javax.management.DynamicMBean" abstract="true"/>
|
||||
|
||||
<bean id="toBeIgnoredToo" class="javax.management.DynamicMBean" abstract="true" lazy-init="true"/>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="server" ref="server"/>
|
||||
<property name="autodetect" value="true"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="customEditorConfigurer" class="org.springframework.beans.factory.config.CustomEditorConfigurer">
|
||||
<property name="propertyEditorRegistrars">
|
||||
<bean class="org.springframework.jmx.export.CustomDateEditorRegistrar"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="dateRange" class="org.springframework.jmx.export.DateRange">
|
||||
<property name="startDate" value="2004/10/12"/>
|
||||
<property name="endDate" value="2004/11/13"/>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=dateRange" value-ref="dateRange"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="server" ref="server"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="server">
|
||||
<ref bean="server"/>
|
||||
</property>
|
||||
<property name="autodetect">
|
||||
<value>true</value>
|
||||
</property>
|
||||
<property name="excludedBeans" value="spring:mbean=false"/>
|
||||
</bean>
|
||||
|
||||
<bean name="spring:mbean=true" class="org.springframework.jmx.export.TestDynamicMBean"/>
|
||||
<bean name="spring:mbean=false" class="org.springframework.jmx.export.TestDynamicMBean"/>
|
||||
|
||||
<bean id="connector" class="org.springframework.jmx.support.ConnectorServerFactoryBean">
|
||||
<property name="server">
|
||||
<ref bean="server"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=testBean1" value="testBean"/>
|
||||
<entry key="bean:name=testBean2" value="testBean2"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="server" ref="server"/>
|
||||
<property name="autodetect" value="true"/>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.export.ExceptionOnInitBean" lazy-init="true">
|
||||
<property name="exceptOnInit" value="true"/>
|
||||
<property name="name" value="foo"/>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean2" class="org.springframework.jmx.export.ExceptionOnInitBean" lazy-init="true">
|
||||
<property name="exceptOnInit" value="false"/>
|
||||
<property name="name" value="foo"/>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean3" class="org.springframework.jmx.export.ExceptionOnInitBea" lazy-init="true"/>
|
||||
|
||||
<bean id="server" class="org.springframework.jmx.support.MBeanServerFactoryBean"/>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1 @@
|
||||
namingTest = bean:name=namingTest
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="publisher" class="org.springframework.jmx.export.NotificationPublisherTests$MyNotificationPublisher" lazy-init="true"/>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="spring:type=Publisher" value="publisher"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="server" ref="server"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="publisher" class="org.springframework.jmx.export.NotificationPublisherTests$MyNotificationPublisher"/>
|
||||
|
||||
<bean id="publisherMBean" class="org.springframework.jmx.export.NotificationPublisherTests$MyNotificationPublisherMBean"/>
|
||||
|
||||
<bean id="publisherStandardMBean" class="org.springframework.jmx.export.NotificationPublisherTests$MyNotificationPublisherStandardMBean"/>
|
||||
|
||||
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="spring:type=Publisher" value-ref="publisher"/>
|
||||
<entry key="spring:type=PublisherMBean" value-ref="publisherMBean"/>
|
||||
<entry key="spring:type=PublisherStandardMBean" value-ref="publisherStandardMBean"/>
|
||||
</map>
|
||||
</property>
|
||||
<property name="server" ref="server"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
|
||||
|
||||
<beans>
|
||||
|
||||
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<property name="properties">
|
||||
<props>
|
||||
<prop key="testBean.name">Rob Harrop</prop>
|
||||
<prop key="testBean.age">100</prop>
|
||||
<prop key="scopeName">myScope</prop>
|
||||
</props>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
|
||||
<property name="scopes">
|
||||
<map>
|
||||
<entry key="${scopeName}">
|
||||
<bean class="org.springframework.tests.context.SimpleMapScope"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.jmx.export.MBeanExporter">
|
||||
<property name="beans">
|
||||
<map>
|
||||
<entry key="bean:name=proxyTestBean1">
|
||||
<ref bean="testBean"/>
|
||||
</entry>
|
||||
</map>
|
||||
</property>
|
||||
<property name="server" ref="server"/>
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.JmxTestBean" scope="myScope">
|
||||
<property name="name">
|
||||
<value>${testBean.name}</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>${testBean.age}</value>
|
||||
</property>
|
||||
<property name="nickName">
|
||||
<null/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user