Add interface-based detection test
Add a test that explicitely validates that `@ManagedResource` and friends can be set on an interface. Issue: SPR-13138
This commit is contained in:
@@ -20,26 +20,22 @@
|
||||
</bean>
|
||||
|
||||
<bean id="testBean" class="org.springframework.jmx.export.annotation.AnnotationTestSubBean">
|
||||
<property name="name">
|
||||
<value>TEST</value>
|
||||
</property>
|
||||
<property name="age">
|
||||
<value>100</value>
|
||||
</property>
|
||||
<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 bean="attributeSource"/>
|
||||
</property>
|
||||
<property name="attributeSource" ref="attributeSource"/>
|
||||
</bean>
|
||||
|
||||
<bean id="metadataAssembler" class="org.springframework.jmx.export.assembler.MetadataMBeanInfoAssembler">
|
||||
<property name="attributeSource">
|
||||
<ref bean="attributeSource"/>
|
||||
</property>
|
||||
<property name="attributeSource" ref="attributeSource"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user