Package org.jboss.dependency.spi.tracker

Examples of org.jboss.dependency.spi.tracker.ContextTracking


      if (myTracker != null)
         myTracker.incrementUsedBy(this, user);

      if (context instanceof ContextTracking)
      {
         ContextTracking ct = ContextTracking.class.cast(context);
         ContextTracker otherTracker = ct.getContextTracker();
         if (otherTracker != null && otherTracker != myTracker)
            otherTracker.incrementUsedBy(this, user);
      }

      return result;
View Full Code Here


      if (myTracker != null)
         myTracker.decrementUsedBy(this, user);

      if (context instanceof ContextTracking)
      {
         ContextTracking ct = ContextTracking.class.cast(context);
         ContextTracker otherTracker = ct.getContextTracker();
         if (otherTracker != null && otherTracker != myTracker)
            otherTracker.decrementUsedBy(this, user);
      }

      return ungetTargetForActualUser(user);
View Full Code Here

    */
   protected static Object getTarget(ControllerContext user, ControllerContext used)
   {
      if (used instanceof ContextTracking)
      {
         ContextTracking ct = ContextTracking.class.cast(used);
         return ct.getTarget(user);
      }
      else
      {
         return used.getTarget();
      }
View Full Code Here

    */
   protected static Object ungetTarget(ControllerContext user, ControllerContext used)
   {
      if (used instanceof ContextTracking)
      {
         ContextTracking ct = ContextTracking.class.cast(used);
         ct.ungetTarget(user);
      }
      return null;
   }
View Full Code Here

TOP

Related Classes of org.jboss.dependency.spi.tracker.ContextTracking

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.