public enum BuiltinScope extends Enum<BuiltinScope>
| Enum Constant and Description |
|---|
APPLICATION |
DEPENDENT |
REQUEST |
SINGLETON |
| Modifier and Type | Method and Description |
|---|---|
static BuiltinScope |
from(org.jboss.jandex.ClassInfo clazz) |
static BuiltinScope |
from(org.jboss.jandex.DotName scopeAnnotationName) |
ScopeInfo |
getInfo() |
org.jboss.jandex.DotName |
getName() |
boolean |
is(ScopeInfo scope) |
static boolean |
isDeclaredOn(org.jboss.jandex.ClassInfo clazz) |
static boolean |
isDefault(ScopeInfo scope) |
static boolean |
isIn(Iterable<org.jboss.jandex.AnnotationInstance> annotations) |
static BuiltinScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltinScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltinScope DEPENDENT
public static final BuiltinScope SINGLETON
public static final BuiltinScope APPLICATION
public static final BuiltinScope REQUEST
public static BuiltinScope[] values()
for (BuiltinScope c : BuiltinScope.values()) System.out.println(c);
public static BuiltinScope 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 ScopeInfo getInfo()
public org.jboss.jandex.DotName getName()
public static BuiltinScope from(org.jboss.jandex.DotName scopeAnnotationName)
public static BuiltinScope from(org.jboss.jandex.ClassInfo clazz)
public static boolean isDefault(ScopeInfo scope)
public boolean is(ScopeInfo scope)
public static boolean isIn(Iterable<org.jboss.jandex.AnnotationInstance> annotations)
public static boolean isDeclaredOn(org.jboss.jandex.ClassInfo clazz)
Copyright © 2021 JBoss by Red Hat. All rights reserved.