Top Description Methods
jakarta.annotation

public @Interface ManagedBean

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
@Deprecated
Imports
java.lang.annotation.*

Deprecated

This will be removed post Jakarta EE 10 and should be replaced with CDI beans

The ManagedBean annotation marks a POJO (Plain Old Java Object) as a ManagedBean. A ManagedBean supports a small set of basic services such as resource injection, lifecycle callbacks and interceptors.
Since
Common Annotations 1.1

Method Summary

Modifier and TypeMethod and Description
public String
value()

The name of the Jakarta Managed Bean.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The name of the Jakarta Managed Bean. Jakarta Managed Bean names must be unique within a Jakarta EE module. For each named Jakarta Managed Bean, Jakarta EE containers must make available the following entries in JNDI, using the same naming scheme used for Jakarta Enterprise Beans components.

In the application namespace:

java:app/<module-name>/<bean-name>

In the module namespace of the module containing the Jakarta Managed Bean:

java:module/<bean-name>