public static enum BeanArchiveService.BeanDiscoveryMode extends Enum<BeanArchiveService.BeanDiscoveryMode>
| Enum Constant and Description |
|---|
ALL
Pick up all classes as CDI beans.
|
ANNOTATED
Only classes with a 'bean defining annotation' will get
picked up as CDI beans.
|
NONE
Ignore all classes in this BDA when it comes to beans scanning.
|
TRIM
Pick up all classes (like with
ALL and fire the
ProcessAnnotatedType event for them. |
| Modifier and Type | Method and Description |
|---|---|
static BeanArchiveService.BeanDiscoveryMode |
getByOrdinal(int ordinal) |
int |
getOrdinal() |
static BeanArchiveService.BeanDiscoveryMode |
max(BeanArchiveService.BeanDiscoveryMode bdmA,
BeanArchiveService.BeanDiscoveryMode bdmB) |
static BeanArchiveService.BeanDiscoveryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeanArchiveService.BeanDiscoveryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeanArchiveService.BeanDiscoveryMode TRIM
ALL and fire the
ProcessAnnotatedType event for them.
But only pick up the scanned class as CDI bean:
ALL mode beans without any scope will
not get picked up as @Dependent scoped beans!public static final BeanArchiveService.BeanDiscoveryMode ALL
public static final BeanArchiveService.BeanDiscoveryMode ANNOTATED
public static final BeanArchiveService.BeanDiscoveryMode NONE
public static BeanArchiveService.BeanDiscoveryMode[] values()
for (BeanArchiveService.BeanDiscoveryMode c : BeanArchiveService.BeanDiscoveryMode.values()) System.out.println(c);
public static BeanArchiveService.BeanDiscoveryMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getOrdinal()
public static BeanArchiveService.BeanDiscoveryMode getByOrdinal(int ordinal)
public static BeanArchiveService.BeanDiscoveryMode max(BeanArchiveService.BeanDiscoveryMode bdmA, BeanArchiveService.BeanDiscoveryMode bdmB)
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.