org.jboss.dependency.plugins.graph
Class DepthLookupStrategy

java.lang.Object
  extended by org.jboss.dependency.plugins.graph.AbstractLookupStrategy
      extended by org.jboss.dependency.plugins.graph.LocalLookupStrategy
          extended by org.jboss.dependency.plugins.graph.HierarchyLookupStrategy
              extended by org.jboss.dependency.plugins.graph.DepthLookupStrategy
All Implemented Interfaces:
LookupStrategy, SearchInfo
Direct Known Subclasses:
ChildrenOnlyDepthLookupStrategy

public class DepthLookupStrategy
extends HierarchyLookupStrategy

Depth search.

Author:
Ales Justin

Constructor Summary
  DepthLookupStrategy()
           
protected DepthLookupStrategy(boolean checkCurrent)
           
 
Method Summary
protected  ControllerContext getContextInternal(AbstractController controller, Object name, ControllerState state)
          Get context based on this strategy.
protected  ControllerContext getContextInternal(AbstractController controller, Object name, ControllerState state, boolean check)
          Get context based on this strategy.
 
Methods inherited from class org.jboss.dependency.plugins.graph.HierarchyLookupStrategy
isCheckCurrent
 
Methods inherited from class org.jboss.dependency.plugins.graph.LocalLookupStrategy
getLocalContext
 
Methods inherited from class org.jboss.dependency.plugins.graph.AbstractLookupStrategy
getContext, getInfo, getStrategy, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepthLookupStrategy

public DepthLookupStrategy()

DepthLookupStrategy

protected DepthLookupStrategy(boolean checkCurrent)
Method Detail

getContextInternal

protected ControllerContext getContextInternal(AbstractController controller,
                                               Object name,
                                               ControllerState state)
Description copied from class: AbstractLookupStrategy
Get context based on this strategy.

Overrides:
getContextInternal in class LocalLookupStrategy
Parameters:
controller - the current abstract controller
name - the name of the context
state - the context's state
Returns:
context or null if not available

getContextInternal

protected ControllerContext getContextInternal(AbstractController controller,
                                               Object name,
                                               ControllerState state,
                                               boolean check)
Get context based on this strategy.

Parameters:
controller - the current abstract controller
name - the name of the context
state - the context's state
check - check current
Returns:
context or null if not available


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.