org.sapia.archie.strategy
Interface LookupStrategy

All Known Implementing Classes:
DefaultLookupNodeStrategy, DefaultLookupStrategy, FindRootStrategy

public interface LookupStrategy

This interface specifies lookup strategy behavior. It decouples lookup logic from node implementations. Different strategies can be implemented, according to applications needs, without having to mingle with node implementations.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Method Summary
 java.lang.Object lookup(Name n, Node from)
          Performs the lookup operation from the given node.
 

Method Detail

lookup

java.lang.Object lookup(Name n,
                        Node from)
                        throws NotFoundException,
                               ProcessingException
Performs the lookup operation from the given node.

Parameters:
n - the Name of the value to lookup.
from - the Node from which the search starts.
Returns:
the Object that corresponds to the given name.
Throws:
NotFoundException - if no object is found for the given name.
ProcessingException - if a problem occurs while performing the lookup.


Copyright © 2010 Sapia OSS. All Rights Reserved.