org.jboss.dependency.plugins.graph
Class LocalLookupStrategy

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

public class LocalLookupStrategy
extends AbstractLookupStrategy

Check only current scope.

Author:
Ales Justin

Constructor Summary
LocalLookupStrategy()
           
 
Method Summary
protected  ControllerContext getContextInternal(AbstractController controller, Object name, ControllerState state)
          Get context based on this strategy.
protected  ControllerContext getLocalContext(AbstractController controller, Object name, ControllerState state)
          Get local context.
 
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

LocalLookupStrategy

public LocalLookupStrategy()
Method Detail

getContextInternal

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

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

getLocalContext

protected ControllerContext getLocalContext(AbstractController controller,
                                            Object name,
                                            ControllerState state)
Get local context.

Parameters:
controller - the controller
name - the context name
state - the dependent state
Returns:
found controller context or null


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