net.shibboleth.utilities.java.support.resolver
Interface Resolver<ProductType,CriteriaType>

Type Parameters:
ProductType - the type of objects produced by this resolver
CriteriaType - the type of criteria to process during resolution
All Known Subinterfaces:
CriteriaBasedResolver<ProductType>, PredicateBasedResolver<ProductType>

public interface Resolver<ProductType,CriteriaType>

Generic interface for resolvers which process specified criteria and produce some implementation-specific result information.


Method Summary
 Iterable<ProductType> resolve(CriteriaType criteria)
          Process the specified criteria and return the resulting instances the the product type which satisfy the criteria.
 ProductType resolveSingle(CriteriaType criteria)
          Process the specified criteria and return a single instance of the product type which satisfies the criteria.
 

Method Detail

resolve

@Nonnull
Iterable<ProductType> resolve(@Nullable
                                      CriteriaType criteria)
                              throws ResolverException
Process the specified criteria and return the resulting instances the the product type which satisfy the criteria.

Parameters:
criteria - the criteria to evaluate or process
Returns:
instances which satisfy the criteria
Throws:
ResolverException - thrown if there is an error processing the specified criteria

resolveSingle

@Nullable
ProductType resolveSingle(@Nullable
                                   CriteriaType criteria)
                          throws ResolverException
Process the specified criteria and return a single instance of the product type which satisfies the criteria. If multiple items satisfy the criteria, the choice of which single item to return is implementation-dependent.

Parameters:
criteria - the criteria to evaluate or process
Returns:
instances which satisfy the criteria
Throws:
ResolverException - thrown if there is an error processing the specified criteria


Copyright © 1999-2012. All Rights Reserved.