MBeanConstructorInfoTest.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:freeVM 作者:
/**
 * Create MBeanConstructorInfo objects.
 * 
 * @throws NoSuchMethodException
 * @throws SecurityException
 */
public void setUp() throws Exception {
    final Class c = Hello.class;

    inf1 = new MBeanConstructorInfo("Constructor with parameters", c
        .getConstructor(new Class[] { String.class, String.class,
            String.class, boolean.class, Object.class }));
    inf2 = new MBeanConstructorInfo(
        "org.apache.harmony.test.func.api.javax.management.share.Hello",
        "Constructor with parameters", sig2);

    inf3 = new MBeanConstructorInfo("Constructor without parameters", c
        .getConstructor(new Class[0]));
    inf4 = new MBeanConstructorInfo(
        "org.apache.harmony.test.func.api.javax.management.share.Hello",
        "Constructor without parameters", sig1);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号