Type Parameters:
T - type of object being resolved
All Implemented Interfaces:
Resolver <T,CriteriaSet >
Since:
9.1.3
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
Process the specified criteria and return a single instance of the product type
which satisfies the criteria.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Details
MockResolver
public MockResolver ()
Method Details
resolve
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
Specified by:
resolve in interface Resolver <T ,CriteriaSet >
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
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.
Specified by:
resolveSingle in interface Resolver <T ,CriteriaSet >
Parameters:
criteria - the criteria to evaluate or process
Returns:
a single instance satisfying the criteria, or null
Throws:
ResolverException - thrown if there is an error processing the specified criteria