Example usage for org.springframework.jmx JmxTestBean getClass

List of usage examples for org.springframework.jmx JmxTestBean getClass

Introduction

In this page you can find the example usage for org.springframework.jmx JmxTestBean getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.springframework.jmx.export.assembler.AbstractAutodetectTests.java

public void testAutodetect() throws Exception {
    if (Attributes.getAttributes(JmxTestBean.class).size() == 0) {
        return;/*from  w  w  w . jav  a2 s .  c o m*/
    }
    JmxTestBean bean = new JmxTestBean();

    AutodetectCapableMBeanInfoAssembler assembler = getAssembler();
    assertTrue("The bean should be included", assembler.includeBean(bean.getClass(), "testBean"));
}