Examples of AbstractDependencyItem


Examples of org.jboss.dependency.plugins.AbstractDependencyItem

   }
  
   public void addDependency(KernelControllerContext context)
   {
      BeanMetaData metaData = context.getBeanMetaData();
      DependencyItem dependencyItem = new AbstractDependencyItem(metaData.getName(), dependencyName, ControllerState.INSTANTIATED, ControllerState.INSTALLED);
      DependencyInfo depends = context.getDependencyInfo();
      depends.addIDependOn(dependencyItem);
   }
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

      if (isInnerBean)
      {
         Object name = ctx.getName();
         Object iDependOn = getUnderlyingValue();
         ControllerState whenRequired = visitor.getContextState();
         DependencyItem di = new AbstractDependencyItem(name, iDependOn, whenRequired, ControllerState.INSTALLED);
         visitor.addDependency(di);
      }
      if (create != null && create.getMethodName() == null)
         create.setMethodName("create");
      if (start != null && start.getMethodName() == null)
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

         {
            item = new SearchDependencyItem(name, iDependOn, whenRequired, dependentState, search);
         }
         else
         {
            item = new AbstractDependencyItem(name, iDependOn, whenRequired, dependentState);
         }
         visitor.addDependency(item);
      }
      super.initialVisit(visitor);
   }
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

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

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

      if (state == null)
      {
         state = ControllerState.INSTALLED;
      }

      DependencyItem item = new AbstractDependencyItem(name, iDependOn, whenRequired, state);
      visitor.addDependency(item);
      super.initialVisit(visitor);
   }
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

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

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

   {
      context = visitor.getControllerContext();
      setValue(context.getName());
      ControllerState whenRequired = visitor.getContextState();

      DependencyItem item = new AbstractDependencyItem(getUnderlyingValue(), getUnderlyingValue(), whenRequired, ControllerState.INSTANTIATED);
      visitor.addDependency(item);

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

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

   }
  
   protected OtherDelegate getDelegate2()
   {
      OtherDelegate result = new OtherDelegate("Name2");
      result.addDependency(new AbstractDependencyItem("Name2", "test:a=1,b=2", ControllerState.DESCRIBED, ControllerState.INSTALLED));
      return result;
   }
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

      TestDelegate delegate = new TestDelegate("InstallTestRecursive");
      RecursiveControllerContext context = new RecursiveControllerContext(delegate, this);

      TestDelegate other = new TestDelegate("Other");
      TestControllerContext otherContext = new TestControllerContext(other);
      DependencyItem item = new AbstractDependencyItem(other.getName(), delegate.getName(), ControllerState.CREATE, ControllerState.CONFIGURED);
      otherContext.getDependencyInfo().addIDependOn(item);
      assertInstall(otherContext, ControllerState.CONFIGURED);
     
      assertInstall(context, ControllerState.INSTALLED);
      assertContext(otherContext, ControllerState.INSTALLED);
View Full Code Here

Examples of org.jboss.dependency.plugins.AbstractDependencyItem

      TestDelegate delegate = new TestDelegate("UninstallTestRecursive");
      RecursiveControllerContext context = new RecursiveControllerContext(delegate, this);

      TestDelegate other = new TestDelegate("Other");
      TestControllerContext otherContext = new TestControllerContext(other);
      DependencyItem item = new AbstractDependencyItem(other.getName(), delegate.getName(), ControllerState.CREATE, ControllerState.CONFIGURED);
      otherContext.getDependencyInfo().addIDependOn(item);
      assertInstall(otherContext, ControllerState.CONFIGURED);
     
      assertInstall(context, ControllerState.INSTALLED);
      assertContext(otherContext, ControllerState.INSTALLED);
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.