/**
* Create MBean server, register Hello MBean.
*/
public final void init() throws Exception {
// Get the Platform MBean Server
mbs = MBeanServerFactory.createMBeanServer();
// Construct the ObjectName for the Hello MBean
name = new ObjectName(
"org.apache.harmony.test.func.api.javax.management:type=Hello");
// Create the Hello MBean
mbean = new Hello();
// Register the Hello MBean
mbs.registerMBean(mbean, name);
// Construct the ObjectName for the notification listener
lName = new ObjectName(
"org.apache.harmony.test.func.api.javax.management:type=Listener");
// Register the notification listener
mbs.registerMBean(mbean, lName);
// Register class loader.
loader = new ObjectName("test.loader:type=Loader");
mbs.registerMBean(new MLet(), loader);
// Instantiate the security manager
mgr = new MySecurityManager();
}
MbeanServerSecurityTest.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录