Top Description Methods
jakarta.enterprise.inject.build.compatible.spi

public Interface ScopeInfo

Imports
jakarta.enterprise.lang.model.declarations.ClassInfo

A scope of a bean. Scope type is an annotation, meta-annotated @Scope or @NormalScope. Lifecycle of beans with given scope is determined by a context.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public ClassInfo

Returns:

declaration of this scope annotation, never null
annotation
()

Returns the declaration of this scope annotation.

public boolean

Returns:

whether this scope type is normal
isNormal
()

Returns whether this scope type is normal.

public default String

Returns:

binary name of this scope annotation, never null
name
()

Binary name of this scope annotation, as defined by The Java™ Language Specification; in other words, the scope annotation name as returned by Class#getName().

Method Detail

annotationback to summary
public ClassInfo annotation()

Returns the declaration of this scope annotation.

Returns:ClassInfo

declaration of this scope annotation, never null

isNormalback to summary
public boolean isNormal()

Returns whether this scope type is normal. In other words, returns whether this scope annotation is meta-annotated @NormalScope.

Returns:boolean

whether this scope type is normal

nameback to summary
public default String name()

Binary name of this scope annotation, as defined by The Java™ Language Specification; in other words, the scope annotation name as returned by Class#getName(). Equivalent to annotation().name().

Returns:String

binary name of this scope annotation, never null