Package org.exoplatform.container.jmx.support

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


     
      ExoContainer currentContainer = new ExoContainer();
      ExoContainerContext.setCurrentContainer(currentContainer);
      try
      {
         ExoContainerFinder proxyObject =
            MBeanServerInvocationHandler.newProxyInstance(server, oi.getObjectName(),
               ExoContainerFinder.class, false);
         assertTrue("We expect to get the current exo container", oldContainer == proxyObject.getCurrentExoContainer());
         assertTrue("We expect to get the previous exo container", ExoContainerContext.getCurrentContainerIfPresent() == currentContainer);
         ExoContainerContext.setCurrentContainer(oldContainer);
         assertTrue("We expect to get the current exo container", oldContainer == proxyObject.getCurrentExoContainer());
         assertTrue("We expect to get the previous exo container", ExoContainerContext.getCurrentContainerIfPresent() == oldContainer);
         ExoContainerContext.setCurrentContainer(null);
         assertTrue("We expect to get the current exo container", oldContainer == proxyObject.getCurrentExoContainer());
         assertTrue("We expect to get the previous exo container", ExoContainerContext.getCurrentContainerIfPresent() == oldContainer);
      }
      finally
      {
         ExoContainerContext.setCurrentContainer(oldContainer);
View Full Code Here

TOP

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

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.