public abstract class AbstractResolver<T,E,A> extends Object implements Resolver<T,E,A>
Modifier | Constructor and Description |
---|---|
protected |
AbstractResolver() |
protected |
AbstractResolver(List<A> driverData) |
Modifier and Type | Method and Description |
---|---|
protected List<E> |
allocate(List<A> driverData) |
protected List<T> |
assign(List<E> sourceList) |
protected abstract Allocator<E,A> |
getAllocator() |
protected abstract Allocator<T,E> |
getAssigner() |
protected List<A> |
getDriverData() |
protected Class<?> |
getSourceType() |
protected Class<?> |
getTargetType() |
protected List<A> |
locate(Locator<A> locator) |
protected List<E> |
project(Projector<E> projector,
List<E> sourceList) |
List<? extends T> |
resolve(Integer limit,
Locator<A> locator,
Projector<E> projector,
Filter<?>... filters)
Resolve all matches up to limit
|
List<? extends T> |
resolveAll(Locator<A> locator,
Projector<E> projector,
Filter<?>... filters)
Resolve all matches
|
T |
resolveFirst(Locator<A> locator,
Projector<E> projector,
Filter<?>... filters)
Resolve the first match
|
protected AbstractResolver()
protected AbstractResolver(List<A> driverData)
protected List<A> getDriverData()
protected abstract Allocator<E,A> getAllocator()
protected abstract Allocator<T,E> getAssigner()
public T resolveFirst(Locator<A> locator, Projector<E> projector, Filter<?>... filters)
Resolver
resolveFirst
in interface Resolver<T,E,A>
locator
- Locator to be usedprojector
- Projector to be usedfilters
- Zero or more filters to be usedpublic List<? extends T> resolve(Integer limit, Locator<A> locator, Projector<E> projector, Filter<?>... filters)
Resolver
public List<? extends T> resolveAll(Locator<A> locator, Projector<E> projector, Filter<?>... filters)
Resolver
resolveAll
in interface Resolver<T,E,A>
locator
- Locator to be usedprojector
- Projector to be usedfilters
- Zero or more filters to be usedprotected Class<?> getSourceType()
protected Class<?> getTargetType()
Copyright © 2010–2018 Jadira Systems. All rights reserved.