Package org.exoplatform.container.jmx

Examples of org.exoplatform.container.jmx.MX4JComponentAdapter


   public void testRegisterComponent()
   {
      final RootContainer root = createRootContainer("test-tenants-container.xml");

      ManageableComponentAdapter adapter =
         new ManageableComponentAdapter(root, new MX4JComponentAdapter(C1.class, C1.class));

      root.registerComponent(adapter);
      assertEquals(C1.class, getLastRegisteredKey(root));
   }
View Full Code Here


      {
         lastRegisteredKey = component.getComponentKey();
         registeredKeys.add(component.getComponentKey());
         return component;
      }
      return new MX4JComponentAdapter(component.getComponentKey(), component.getComponentImplementation()); // dummy stuff to return not null
   }
View Full Code Here

   {
      if (!TenantsContainerContext.class.equals(componentKey))
      {
         lastUnregisteredKey = componentKey;
         registeredKeys.remove(componentKey);
         return new MX4JComponentAdapter(componentKey, this.getClass()); // dummy stuff to return not null
      }
      return null;
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.container.jmx.MX4JComponentAdapter

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.