Package org.jboss.dependency.spi

Examples of org.jboss.dependency.spi.DependencyItem


         throw new IllegalArgumentException("Install/uninstall should have method attribute.");

      KernelControllerContext context = visitor.getControllerContext();
      if (bean != null)
      {
         DependencyItem item = new InstallationDependencyItem(context.getName());
         visitor.addDependency(item);
      }
      super.initialVisit(visitor);
   }
View Full Code Here


            buffer.append(ctx.getName()).append(" depends on: \n");
            DependencyInfo dependsInfo = ctx.getDependencyInfo();
            Set depends = dependsInfo.getIDependOn(null);
            for (Iterator j = depends.iterator(); j.hasNext();)
            {
               DependencyItem item = (DependencyItem) j.next();
               buffer.append("                     ").append(item.getIDependOn()).append("'{").append(item.getWhenRequired().getStateString());
               buffer.append(':');
               ControllerContext other = controller.getContext(item.getIDependOn(), null);
               if (other == null)
                  buffer.append("NOT FOUND");
               else
                  buffer.append(other.getState().getStateString());
               buffer.append('}');
View Full Code Here

   }

   public void initialVisit(MetaDataVisitor visitor)
   {
      KernelControllerContext context = visitor.getControllerContext();
      DependencyItem item = new EjbLinkDemandDependencyItem(context.getName());
      visitor.addDependency(item);
      visitor.initialVisit(this);
   }
View Full Code Here

   }

   public void initialVisit(MetaDataVisitor visitor)
   {
      KernelControllerContext context = visitor.getControllerContext();
      DependencyItem item = new JndiDemandDependencyItem(context.getName());
      visitor.addDependency(item);
      visitor.initialVisit(this);
   }
View Full Code Here

   }

   protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(ClassInfo info, MetaData retrieval, SuperDemand annotation, KernelControllerContext context) throws Throwable
   {
      DependencyInfo di = context.getDependencyInfo();
      DependencyItem item = new AbstractDependencyItem(context.getName(), annotation.demand(), new ControllerState(annotation.whenRequired()), new ControllerState(annotation.dependentState()));
      di.addIDependOn(item);
      return null;
   }
View Full Code Here

      }

      if (factory == null)
         factory = (SecurityDomainDependencyFactory)dependency.factory().newInstance();

      DependencyItem item = factory.createDependencyItem(annotation, dependency);
      dependencies.addIDependOn(item);

      return null;
   }
View Full Code Here

      ControllerContext context = controller.getContext(name, null);
      if (context == null)
         throw new IllegalArgumentException("Cannot find context: " + name);
     
      DependencyInfo di = context.getDependencyInfo();
      DependencyItem item = new AbstractDependencyItem(context.getName(), demand, new ControllerState(whenRequired), new ControllerState(dependentState));
      di.addIDependOn(item);
   }
View Full Code Here

      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);
      }
      super.initialVisit(visitor);
   }
View Full Code Here

         if (whenRequired == null)
         {
            whenRequired = visitor.getContextState();
         }

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

   }

   public void initialVisit(MetaDataVisitor visitor)
   {
      KernelControllerContext context = visitor.getControllerContext();
      DependencyItem item = new LifecycleDependencyItem(context.getName(), ControllerState.CREATE);
      visitor.addDependency(item);
      item = new LifecycleDependencyItem(context.getName(), ControllerState.START);
      visitor.addDependency(item);

      visitor.initialVisit(this);
View Full Code Here

TOP

Related Classes of org.jboss.dependency.spi.DependencyItem

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.