Package org.jboss.dependency.plugins

Examples of org.jboss.dependency.plugins.AbstractDependencyItem


         dependent = ControllerState.getInstance(dependentState);

      DependencyInfo di = targetControllerContext.getDependencyInfo();
      for (Object dependency : dependencies)
      {
         DependencyItem item = new AbstractDependencyItem(targetName, dependency, whenRequired, dependent);
         di.addIDependOn(item);
      }
   }
View Full Code Here


            log.debug("Encountered EJB3 deployment " + unit + ", adding dependencies " + items);
            // We add to toplevel, because DeploymentControllerContext will deploy all kids when it goes to install
            unit.getTopLevel().addAttachment(DependenciesMetaData.class, dependencies);
            */
            //ControllerContext context = unit.getAttachment(ControllerContext.class);
            unit.addIDependOn(new AbstractDependencyItem(unit.getName(), TransactionManager.class, ControllerState.getInstance("Real"), ControllerState.INSTALLED));
         }

         private DependencyItemMetaData createDependencyItemMetaData(String name)
         {
            DependencyItemMetaData item = new DependencyItemMetaData();
View Full Code Here

            dependency = getIDependOnObjectName().getCanonicalName();
         }
         catch (MalformedObjectNameException ignored)
         {
         }
         visitor.addDependency(new AbstractDependencyItem(name, dependency, this.whenRequired, this.dependentState));
         visitor.visit(this);
      }
View Full Code Here

         if (dependencies != null)
         {
            Iterator it = dependencies.iterator();
            while (it.hasNext())
            {
               AbstractDependencyItem dependency = new AbstractDependencyItem(metaData.getName(), it.next(), ControllerState.INSTANTIATED, ControllerState.INSTALLED);
               depends.addIDependOn(dependency);
            }
         }

      }
View Full Code Here

      controller = (KernelController) controllerContext.getController();
      Object name = controllerContext.getName();
      Object iDependOn = getUnderlyingValue();
      ControllerState whenRequired = visitor.getContextState();

      DependencyItem item = new AbstractDependencyItem(name, iDependOn, whenRequired, dependentState);
      visitor.addDependency(item);

      super.visit(visitor);
   }
View Full Code Here

   }
  
   protected OtherDelegate getDelegate2()
   {
      OtherDelegate result = new OtherDelegate("Name2");
      result.addDependency(new AbstractDependencyItem("Name2", "Name1", ControllerState.DESCRIBED, ControllerState.INSTALLED));
      return result;
   }
View Full Code Here

   }
  
   protected TestDelegate getDelegate2()
   {
      TestDelegate result = new TestDelegate("Name2");
      result.addDependency(new AbstractDependencyItem("Name2", "Name1", ControllerState.DESCRIBED, ControllerState.INSTALLED));
      return result;
   }
View Full Code Here

   }
  
   protected TestDelegate getDelegate2()
   {
      TestDelegate result = new TestDelegate("Name2");
      result.addDependency(new AbstractDependencyItem("Name2", "Name1", ControllerState.CREATE, ControllerState.INSTALLED));
      return result;
   }
View Full Code Here

  
   protected TestDelegate getDelegate2()
   {
      TestDelegate result = new TestDelegate("Name2");
      result.setMode(ControllerMode.MANUAL);
      result.addDependency(new AbstractDependencyItem("Name2", "Name1", ControllerState.CREATE, ControllerState.INSTALLED));
      return result;
   }
View Full Code Here

  
   public void testManualWithDependency() throws Throwable
   {
      TestDelegate dependee = new TestDelegate("Dependee");
      TestDelegate dependent = new TestDelegate("Dependent");
      dependent.addDependency(new AbstractDependencyItem("Dependent", "Dependee", ControllerState.START, ControllerState.INSTALLED));
      dependee.setMode(ControllerMode.MANUAL);
      ControllerContext dependeeContext = assertInstall(dependee, ControllerState.NOT_INSTALLED);
      dependent.setMode(ControllerMode.MANUAL);
      ControllerContext dependentContext = assertInstall(dependent, ControllerState.NOT_INSTALLED);
     
View Full Code Here

TOP

Related Classes of org.jboss.dependency.plugins.AbstractDependencyItem

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.