public final class CdiUtil extends Object
Modifier and Type | Method and Description |
---|---|
static jakarta.enterprise.inject.spi.BeanManager |
getBeanManager()
Get me current bean manager.
|
static Class<? extends Annotation> |
getBeanScope(Class<?> beanClass,
jakarta.enterprise.inject.spi.BeanManager beanManager)
Get me scope of a bean corresponding to given class.
|
static Annotation[] |
getQualifiers(Annotation[] annotations)
Get me list of qualifiers included in given annotation list.
|
public static Annotation[] getQualifiers(Annotation[] annotations)
annotations
- list of annotations to introspectpublic static jakarta.enterprise.inject.spi.BeanManager getBeanManager()
META-INF/services
. If not found
the bean manager is returned from the default provider.public static Class<? extends Annotation> getBeanScope(Class<?> beanClass, jakarta.enterprise.inject.spi.BeanManager beanManager)
beanClass
- bean class in question.beanManager
- actual bean manager.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.