Package org.jboss.dependency.spi.graph

Examples of org.jboss.dependency.spi.graph.GraphController


   protected KernelControllerContext getControllerContext(final Object name, final ControllerState state)
   {
      try
      {
         Controller controller = kernel.getController();
         GraphController gc = (GraphController)controller;
         KernelControllerContext context = (KernelControllerContext)gc.getContext(name, state, Search.DEPTH);
         if (context == null)
            throw new IllegalStateException("Bean not found " + name + " at state " + state);
         return context;
      }
      catch (Throwable t)
View Full Code Here


   public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable
   {
      // we're here, so it must be GraphController instance
      Controller controller = context.getController();
      GraphController gc = (GraphController)controller;

      ControllerState dependentState = state;
      if (dependentState == null)
         dependentState = ControllerState.INSTALLED;
      ControllerContext context = gc.getContext(getUnderlyingValue(), dependentState, search);

      Object result;
      if (property != null && property.length() > 0)
      {
         if (context instanceof AttributeDispatchContext)
View Full Code Here

         scopeKey.addScope(CommonLevels.DEPLOYMENT, deployment);
      if (id > 0)
         scopeKey.addScope(CommonLevels.INSTANCE, "id-" + id);

      SearchInfo searchInfo = new ScopeKeySearchInfo(scopeKey);
      GraphController gc = (GraphController)getController();
      ControllerContext lookup = gc.getContext("bean", null, searchInfo);
      assertSame(context, lookup);

      return context;
   }
View Full Code Here

   public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable
   {
      // we're here, so it must be GraphController instance
      Controller controller = context.getController();
      GraphController gc = (GraphController)controller;

      ControllerState dependentState = state;
      if (dependentState == null)
         dependentState = ControllerState.INSTALLED;
      ControllerContext context = gc.getContext(getUnderlyingValue(), dependentState, search);

      Object result;
      if (property != null && property.length() > 0)
      {
         if (context instanceof AttributeDispatchContext)
View Full Code Here

      Controller controller = kernel.getController();
      if (controller instanceof GraphController == false)
         throw new IllegalArgumentException("Controller is not GraphController instance: " + controller);

      GraphController gc = GraphController.class.cast(controller);
      return gc.getContext(name, state, getSearchInfo());
   }
View Full Code Here

TOP

Related Classes of org.jboss.dependency.spi.graph.GraphController

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.