Package org.jboss.dependency.plugins

Examples of org.jboss.dependency.plugins.AbstractDependencyItem


  
   public void testManualWithDependencyUninstallDependentFirst() 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


      parameters.add(new AbstractParameterMetaData(Boolean.TYPE.getName(), exposeClass));
      parameters.add(new AbstractParameterMetaData(new AbstractValueMetaData(interfaces)));
      constructor.setParameters(parameters);
      setConstructor(constructor);

      vistor.addDependency(new AbstractDependencyItem(getName(), beanName, ControllerState.INSTANTIATED, ControllerState.DESCRIBED));
      super.initialVisit(vistor);
   }
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.setMode(ControllerMode.MANUAL);
      result.addDependency(new AbstractDependencyItem("Name2", "Name1", ControllerState.CREATE, ControllerState.INSTALLED));
      return result;
   }
View Full Code Here

      parameters.add(new AbstractParameterMetaData(new AbstractValueMetaData(interfaces)));
      constructor.setParameters(parameters);
      setConstructor(constructor);

      // we just need the original bean to be present --> Not_Installed state
      vistor.addDependency(new AbstractDependencyItem(getName(), beanName, ControllerState.INSTANTIATED, ControllerState.NOT_INSTALLED));
      super.initialVisit(vistor);
   }
View Full Code Here

      ObjectName jmxName = ObjectName.getInstance(alias);
      String canonical = jmxName.getCanonicalName();
      // add original with dependency
      ControllerContext original = createControllerContext("Test1");
      DependencyInfo info = original.getDependencyInfo();
      info.addIDependOn(new AbstractDependencyItem("Test1", alias, ControllerState.CONFIGURED, null));
      assertInstall(original, ControllerState.INSTANTIATED);
      try
      {
         // create dependency resolver
         ControllerContext dependant = assertCreateInstall(canonical);
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

  
   public void testManualWithDependencyUninstallDependentFirst() 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

   }
  
   protected OtherDelegate getDelegate2()
   {
      OtherDelegate result = new OtherDelegate("Name2");
      result.addDependency(new AbstractDependencyItem("Name2", "test:b=2,a=1", ControllerState.DESCRIBED, ControllerState.INSTALLED));
      return result;
   }
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.