|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.container.InjectionResolver
public class InjectionResolver
Injection point resolver class.
It is a singleton class per ClassLoader per JVM. It is responsible for resolving the bean instances at the injection points for its bean manager.
WebBeansFinder| Constructor Summary | |
|---|---|
InjectionResolver(BeanManagerImpl manager)
Creates a new injection resolve for given bean manager. |
|
| Method Summary | |
|---|---|
void |
checkInjectionPoints(InjectionPoint injectionPoint)
Check that bean exist in the deployment for given injection point definition. |
void |
checkInjectionPointType(InjectionPoint injectionPoint)
Check the type of the injection point. |
void |
clearCaches()
Clear caches. |
Set<Bean<?>> |
findByAlternatives(Set<Bean<?>> result)
Gets alternatives from set. |
Set<Bean<?>> |
findBySpecialization(Set<Bean<?>> result)
Returns specialized beans if exists, otherwise return input result |
Bean<?> |
getInjectionPointBean(InjectionPoint injectionPoint)
Returns bean for injection point. |
static InjectionResolver |
getInstance()
Returns bean manager injection resolver. |
Set<Bean<?>> |
implResolveByName(String name)
Returns set of beans for given bean name. |
Set<Bean<?>> |
implResolveByType(Type injectionPointType,
Annotation... qualifiers)
Resolution by type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InjectionResolver(BeanManagerImpl manager)
manager - bean manager| Method Detail |
|---|
public void clearCaches()
public static InjectionResolver getInstance()
WebBeansFinderpublic void checkInjectionPointType(InjectionPoint injectionPoint)
Injection point type can not be TypeVariable.
injectionPoint - injection point
WebBeansConfigurationException - if not obey the rulepublic void checkInjectionPoints(InjectionPoint injectionPoint)
injectionPoint - injection point
WebBeansConfigurationException - If bean is not avialable in the current deployment for given injectionpublic Bean<?> getInjectionPointBean(InjectionPoint injectionPoint)
injectionPoint - injection point declaration
public Set<Bean<?>> implResolveByName(String name)
name - bean name
public Set<Bean<?>> implResolveByType(Type injectionPointType,
Annotation... qualifiers)
injectionPointType - injection point api typequalifiers - qualifiers of the injection point
public Set<Bean<?>> findBySpecialization(Set<Bean<?>> result)
result - result beans
public Set<Bean<?>> findByAlternatives(Set<Bean<?>> result)
result - resolved set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||