test_class.declarator: handler
test_class.original_string: MBeanServerHandler handler;
test_class.type: MBeanServerHandler
test_class.var_name: handler
test_class.file: agent/jmx/src/test/java/org/jolokia/jmx/JolokiaMBeanServerUtilTest.java
test_class.identifier: JolokiaMBeanServerUtilTest
test_class.interfaces: implements LogHandler
test_case.body: @Test
      public void registerMBean() throws MalformedObjectNameException, NotCompliantMBeanException,
                                         InstanceAlreadyExistsException, MBeanRegistrationException, InstanceNotFoundException {
          MBeanServer jolokiaServer = JolokiaMBeanServerUtil.getJolokiaMBeanServer();
  
          Dummy test = new Dummy();
          ObjectName name = new ObjectName("jolokia.test:name=test");
          JolokiaMBeanServerUtil.registerMBean(test, name);
          assertTrue(jolokiaServer.isRegistered(name));
          JolokiaMBeanServerUtil.unregisterMBean(name);
          Assert.assertFalse(jolokiaServer.isRegistered(name));
      }
test_case.class_method_signature: JolokiaMBeanServerUtilTest.registerMBean()
test_case.full_signature: @Test public void registerMBean()
test_case.identifier: registerMBean
test_case.invocations: getJolokiaMBeanServer registerMBean assertTrue isRegistered unregisterMBean assertFalse isRegistered
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void registerMBean()
focal_class.declarator: JOLOKIA_MBEAN_SERVER_ATTRIBUTE = "JolokiaMBeanServer"
focal_class.modifier: public static final
focal_class.original_string: public static final String JOLOKIA_MBEAN_SERVER_ATTRIBUTE = "JolokiaMBeanServer";
focal_class.type: String
focal_class.var_name: JOLOKIA_MBEAN_SERVER_ATTRIBUTE
focal_class.file: agent/jmx/src/main/java/org/jolokia/jmx/JolokiaMBeanServerUtil.java
focal_class.identifier: JolokiaMBeanServerUtil
focal_class.class_method_signature: JolokiaMBeanServerUtil.JolokiaMBeanServerUtil()
focal_class.full_signature: private  JolokiaMBeanServerUtil()
focal_class.identifier: JolokiaMBeanServerUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  JolokiaMBeanServerUtil()
focal_class.class_method_signature: JolokiaMBeanServerUtil.getJolokiaMBeanServer()
focal_class.full_signature: public static MBeanServer getJolokiaMBeanServer()
focal_class.identifier: getJolokiaMBeanServer
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: MBeanServer
focal_class.signature: MBeanServer getJolokiaMBeanServer()
focal_class.class_method_signature: JolokiaMBeanServerUtil.registerMBean(Object object, ObjectName name)
focal_class.full_signature: public static ObjectInstance registerMBean(Object object, ObjectName name)
focal_class.identifier: registerMBean
focal_class.modifiers: public static
focal_class.parameters: (Object object, ObjectName name)
focal_class.return: ObjectInstance
focal_class.signature: ObjectInstance registerMBean(Object object, ObjectName name)
focal_class.class_method_signature: JolokiaMBeanServerUtil.unregisterMBean(ObjectName name)
focal_class.full_signature: public static void unregisterMBean(ObjectName name)
focal_class.identifier: unregisterMBean
focal_class.modifiers: public static
focal_class.parameters: (ObjectName name)
focal_class.return: void
focal_class.signature: void unregisterMBean(ObjectName name)
focal_class.class_method_signature: JolokiaMBeanServerUtil.registerJolokiaMBeanServerHolderMBean(MBeanServer pServer)
focal_class.full_signature: static MBeanServer registerJolokiaMBeanServerHolderMBean(MBeanServer pServer)
focal_class.identifier: registerJolokiaMBeanServerHolderMBean
focal_class.modifiers: static
focal_class.parameters: (MBeanServer pServer)
focal_class.return: MBeanServer
focal_class.signature: MBeanServer registerJolokiaMBeanServerHolderMBean(MBeanServer pServer)
focal_class.class_method_signature: JolokiaMBeanServerUtil.createObjectName(String pName)
focal_class.full_signature: private static ObjectName createObjectName(String pName)
focal_class.identifier: createObjectName
focal_class.modifiers: private static
focal_class.parameters: (String pName)
focal_class.return: ObjectName
focal_class.signature: ObjectName createObjectName(String pName)
focal_method.body: public static ObjectInstance registerMBean(Object object, ObjectName name) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException {
          return getJolokiaMBeanServer().registerMBean(object, name);
      }
focal_method.class_method_signature: JolokiaMBeanServerUtil.registerMBean(Object object, ObjectName name)
focal_method.full_signature: public static ObjectInstance registerMBean(Object object, ObjectName name)
focal_method.identifier: registerMBean
focal_method.invocations: registerMBean getJolokiaMBeanServer
focal_method.modifiers: public static
focal_method.parameters: (Object object, ObjectName name)
focal_method.return: ObjectInstance
focal_method.signature: ObjectInstance registerMBean(Object object, ObjectName name)