Package org.exoplatform.container.jmx.support

Examples of org.exoplatform.container.jmx.support.ManagedDependent


      MBeanServer server = container.getMBeanServer();
      assertNotNull(server);
      Object foo = server.getAttribute(ObjectName.getInstance("exo:object=Foo"), "Reference");
      assertNotNull(foo);
      assertEquals(aware.foo, foo);
      ManagedDependent expectedBar = new ManagedDependent("Bar");
      aware.context.register(expectedBar);
      assertEquals(1, server.queryMBeans(ObjectName.getInstance("exo:object=Bar"), null).size());
      Object bar = server.getAttribute(ObjectName.getInstance("exo:object=Bar"), "Reference");
      assertEquals(expectedBar, bar);
      aware.context.unregister(expectedBar);
View Full Code Here

TOP

Related Classes of org.exoplatform.container.jmx.support.ManagedDependent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.