Package org.jboss.cache.factories.ComponentRegistry

Examples of org.jboss.cache.factories.ComponentRegistry.State


      }
      componentLookup.put(name, c);

      addComponentDependencies(c, old == null);

      State stateToMoveTo = overallState == null ? CONSTRUCTED : overallState;
      c.changeState(stateToMoveTo);

      // make sure any other omponents that have inadvertently been stopped are now restarted.
      if (old != null)
      {
View Full Code Here


   /**
    * Updates (re-injects) any dependencies needed by all components already in the registry.
    */
   public void updateDependencies()
   {
      State originalState = overallState;
      moveComponentsToState(overallState == STARTED ? STOPPED : CONSTRUCTED);
      moveComponentsToState(originalState);
      // re- add a few key components - this is a hack for now
      CacheImpl ci = getComponent(CacheImpl.class);
      CacheSPI rcid = getComponent("remoteDelegate", RemoteCacheInvocationDelegate.class);
View Full Code Here

TOP

Related Classes of org.jboss.cache.factories.ComponentRegistry.State

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.