abbot.finder
Interface ComponentFinder

All Known Implementing Classes:
BasicFinder

public interface ComponentFinder

Interface to support looking up existing components based on a number of different criteria.

See Also:
Matcher

Method Summary
 Component find(Container root, Matcher m)
          Find a Component, using the given Matcher to determine whether a given component in the hierarchy under the given root is the desired one.
 Component find(Matcher m)
          Find a Component, using the given Matcher to determine whether a given component in the hierarchy used by this ComponentFinder is the desired one.
 

Method Detail

find

Component find(Matcher m)
               throws ComponentNotFoundException,
                      MultipleComponentsFoundException
Find a Component, using the given Matcher to determine whether a given component in the hierarchy used by this ComponentFinder is the desired one.

Note that MultipleComponentsFoundException can only be thrown if the Matcher argument is an instance of MultiMatcher.

Throws:
ComponentNotFoundException
MultipleComponentsFoundException

find

Component find(Container root,
               Matcher m)
               throws ComponentNotFoundException,
                      MultipleComponentsFoundException
Find a Component, using the given Matcher to determine whether a given component in the hierarchy under the given root is the desired one.

Note that MultipleComponentsFoundException can only be thrown if the Matcher argument is an instance of MultiMatcher.

Throws:
ComponentNotFoundException
MultipleComponentsFoundException


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge