|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.weld.resolution.TypeSafeResolver<R,T>
public abstract class TypeSafeResolver<R extends Resolvable,T>
Implementation of type safe bean resolution
Constructor Summary | |
---|---|
TypeSafeResolver(Iterable<? extends T> allBeans,
BeanManagerImpl beanManager)
Constructor |
Method Summary | |
---|---|
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)
|
protected BeanManagerImpl |
getBeanManager()
|
boolean |
isCached(R resolvable)
|
protected abstract boolean |
matches(R resolvable,
T t)
|
Set<T> |
resolve(R resolvable,
boolean cache)
Get the possible beans for the given element |
protected abstract Set<T> |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeSafeResolver(Iterable<? extends T> allBeans, BeanManagerImpl beanManager)
Method Detail |
---|
public void clear()
public Set<T> resolve(R resolvable, boolean cache)
resolvable
- The resolving criteria
protected Iterable<? extends T> getAllBeans(R resolvable)
protected Iterable<? extends T> getAllBeans()
protected abstract Set<T> filterResult(Set<T> matched)
protected abstract Set<T> sortResult(Set<T> matched)
protected abstract boolean matches(R resolvable, T t)
protected R wrap(R resolvable)
public boolean isCached(R resolvable)
protected BeanManagerImpl getBeanManager()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |