Class BaseProductsResolver<P extends Product>
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.BaseProductsResolver<P>
-
- Type Parameters:
P-
- All Implemented Interfaces:
ProductsResolver<List<P>,Void>
- Direct Known Subclasses:
AdminProductsResolver,AllProductsResolver,BrokerProductsResolver,MemberProductsResolver
public abstract class BaseProductsResolver<P extends Product> extends Object implements ProductsResolver<List<P>,Void>
AProductsResolverthat returns the products themselves
-
-
Constructor Summary
Constructors Constructor Description BaseProductsResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancacheResult()Should the result from this resolver be cached? In some cases it might be more harm than good to cache the results...List<P>resolve(Collection<Product> products, String name, Void argument)Resolves the value from the collection of productsprotected abstract Class<P>type()
-
-
-
Method Detail
-
cacheResult
public final boolean cacheResult()
Description copied from interface:ProductsResolverShould the result from this resolver be cached? In some cases it might be more harm than good to cache the results...- Specified by:
cacheResultin interfaceProductsResolver<List<P extends Product>,Void>
-
resolve
public List<P> resolve(Collection<Product> products, String name, Void argument)
Description copied from interface:ProductsResolverResolves the value from the collection of products
-
-