org.oddjob.arooa.registry
Class BeanDirectoryCrawler

java.lang.Object
  extended by org.oddjob.arooa.registry.BeanDirectoryCrawler

public class BeanDirectoryCrawler
extends Object


Constructor Summary
BeanDirectoryCrawler(BeanDirectory directory)
           
 
Method Summary
 Path pathForObject(Object component)
          Get the path to a given component that may or may not be in this registery's hierarchy.
 BeanDirectory registryForComponent(Object component)
          Find the directory for a bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDirectoryCrawler

public BeanDirectoryCrawler(BeanDirectory directory)
Method Detail

registryForComponent

public BeanDirectory registryForComponent(Object component)
Find the directory for a bean.

Parameters:
selected - The current path being built up in this recursive call.
component - The componet being searched for.
Returns:
The path relative to this registry or null if it is is not acessable.

pathForObject

public Path pathForObject(Object component)
Get the path to a given component that may or may not be in this registery's hierarchy.

Parameters:
component - The component.
Returns:
The path or null if it can't be found.