public abstract class TypeSafeResolver<R extends Resolvable,T,C extends Collection<T>> extends Object
Constructor and Description |
---|
TypeSafeResolver(Iterable<? extends T> allBeans)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset all cached resolutions
|
protected abstract Set<T> |
filterResult(Set<T> matched) |
protected Iterable<? extends T> |
getAllBeans() |
protected Iterable<? extends T> |
getAllBeans(R resolvable) |
boolean |
isCached(R resolvable) |
protected C |
makeResultImmutable(C result) |
protected abstract boolean |
matches(R resolvable,
T t) |
C |
resolve(R resolvable,
boolean cache)
Get the possible beans for the given element
|
protected abstract C |
sortResult(Set<T> matched) |
String |
toString()
Gets a string representation
|
protected R |
wrap(R resolvable)
allows subclasses to wrap a resolvable before it is resolved
|
public void clear()
public C resolve(R resolvable, boolean cache)
resolvable
- The resolving criteriapublic boolean isCached(R resolvable)
Copyright © 2016. All rights reserved.