Examples of DependencyInfo


Examples of org.jboss.dependency.spi.DependencyInfo

      {
         Object contextName = context.getName();
         String name = contextName.toString();
         Set<MissingDependency> dependencies = new HashSet<MissingDependency>();

         DependencyInfo dependsInfo = context.getDependencyInfo();
         ControllerState currentState = context.getState();
         ControllerState nextState = states.getNextState(currentState);

         for (DependencyItem item : dependsInfo.getUnresolvedDependencies(nextState))
         {
            if (item.isResolved() == false)
            {
               ControllerState actualState = null;
               String actualStateString;
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

         if (trace)
            log.trace("Installing " + context.toShortString());

         context.setController(this);
         DependencyInfo dependencies = context.getDependencyInfo();
         if (trace)
         {
            String dependsOn = null;
            if( dependencies != null )
            {
               Set set = dependencies.getIDependOn(null);
               if( set != null )
                  dependsOn = set.toString();
            }
            log.trace("Dependencies for " + name + ": " + dependsOn);
         }
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

         for (Iterator i = contexts.iterator(); i.hasNext();)
         {
            ControllerContext ctx = (ControllerContext) i.next();
            if (advance(ctx))
            {
               DependencyInfo dependencies = ctx.getDependencyInfo();
               if (dependencies.resolveDependencies(this, state))
                  result.add(ctx);
            }
         }
      }
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

      Set<ControllerContext> fromContexts = contextsByState.get(fromState);
      if (fromContexts == null || fromContexts.remove(context) == false)
         throw new Error("INTERNAL ERROR: context not found in previous state " + fromState.getStateString() + " context=" + context.toShortString(), new Exception("STACKTRACE"));

      DependencyInfo dependencies = context.getDependencyInfo();
      Set dependsOnMe = dependencies.getDependsOnMe(null);
      if (dependsOnMe.isEmpty() == false)
      {
         for (Iterator i = dependsOnMe.iterator(); i.hasNext();)
         {
            DependencyItem item = (DependencyItem) i.next();
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

    * @param controller the controller
    * @param context the other context
    */
   protected void addDependsOnMe(Controller controller, ControllerContext context)
   {
      DependencyInfo info = context.getDependencyInfo();
      if (info != null)
         info.addDependsOnMe(this);
   }
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

      {
         Object contextName = context.getName();
         String name = contextName.toString();
         Set<MissingDependency> dependencies = new HashSet<MissingDependency>();

         DependencyInfo dependsInfo = context.getDependencyInfo();
         ControllerState currentState = context.getState();
         ControllerState nextState = states.getNextState(currentState);

         for (DependencyItem item : dependsInfo.getUnresolvedDependencies(nextState))
         {
            if (item.isResolved() == false)
            {
               String dependency;
               ControllerState actualState = null;
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

     
      // Remove the DependsOnMe part of this item
      item.setResolved(ResolvedState.UNRESOLVED);
     
      // Remove the IDependOn part of this item
      DependencyInfo dependencyInfo = context.getDependencyInfo();
      dependencyInfo.removeIDependOn(item);
   }
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

   protected void removeDependsOnMe(RequirementDependencyItem item)
   {
      if (context == null)
         return;
     
      DependencyInfo dependencyInfo = context.getDependencyInfo();
      dependencyInfo.removeDependsOnMe(item);
   }
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

   private void enableLazyShutdown()
   {
      ControllerContext ctx = getControllerContext();
      if (ctx != null)
      {
         DependencyInfo info = ctx.getDependencyInfo();
         if (info != null)
         {
            Set<DependencyItem> items = info.getDependsOnMe(RequirementDependencyItem.class);
            if (items != null && items.isEmpty() == false)
            {
               for (DependencyItem item : items)
                  info.removeDependsOnMe(item);
            }
         }
      }
   }
View Full Code Here

Examples of org.jboss.dependency.spi.DependencyInfo

         if (iDependOn != null)
         {
            ControllerContext context = controller.getContext(iDependOn, null);
            if (context != null)
            {
               DependencyInfo info = context.getDependencyInfo();
               info.removeDependsOnMe(this);
            }
         }

         module.removeIDependOn(this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.