public interface CdiServiceLocator
| Modifier and Type | Interface and Description |
|---|---|
static class |
CdiServiceLocator.CdiComplexLookupBuilder<T>
Helper to construct complex CDI queries
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
cdi(Class<T> clazz)
Default CDI lookup of the specified type.
|
<T> List<T> |
cdiAll(Class<T> clazz)
Gets a list of all CDI beans for the specified type.
|
<T> List<T> |
cdiAllAnno(Class<T> clazz,
Annotation... annotations)
Gets a list of all CDI beans for the specified type.
|
<T> T |
cdiAnno(Class<T> clazz,
Annotation... annotations)
Looks up a resource in the CDI BeanManager.
|
<T> CdiServiceLocator.CdiComplexLookupBuilder<T> |
cdiComplex(Class<T> clazz)
Returns a builder to issue complex CDI queries.
|
<T> T |
cdiNamed(Class<T> clazz,
String name)
Get a @Named annotated object with the specified name.
|
<T> T cdi(Class<T> clazz)
clazz - Desired type to get from CDIch.inftec.ju.util.JuRuntimeException - if we don't find exactly one matching instance<T> T cdiAnno(Class<T> clazz, Annotation... annotations)
clazz - Type of the resourceannotations - Annotation qualifiers for the Beans to be looked up<T> List<T> cdiAll(Class<T> clazz)
clazz - Type of the bean<T> List<T> cdiAllAnno(Class<T> clazz, Annotation... annotations)
clazz - Type of the beanannotations - List of annotation qualifiers the bean should have. For @Any, the
public field ServiceLocator.ANY can be used.<T> T cdiNamed(Class<T> clazz, String name)
clazz - Desired type to get from CDIname - Value of the @Named annotationch.inftec.ju.util.JuRuntimeException - if we don't find exactly one matching instance<T> CdiServiceLocator.CdiComplexLookupBuilder<T> cdiComplex(Class<T> clazz)
clazz - Desired type to get from CDICopyright © 2015. All rights reserved.