Debian Codegraph @

src/jakarta/annotation/ManagedBean.java

raw symbols SCIP
1 /*
2 * Copyright (c) 2009, 2022 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0, which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
8 * This Source Code may also be made available under the following Secondary
9 * Licenses when the conditions for such availability set forth in the
10 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 * version 2 with the GNU Classpath Exception, which is available at
12 * https://www.gnu.org/software/classpath/license.html.
13 *
14 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 */
16
17 package jakarta.annotation;
18
19 import java.lang.annotation.*;
20 import static java.lang.annotation.ElementType.*;
21 import static java.lang.annotation.RetentionPolicy.*;
22
23 /**
24 * The <code>ManagedBean</code> annotation marks a POJO (Plain Old Java Object)
25 * as a ManagedBean. A ManagedBean supports a small set of basic services
26 * such as resource injection, lifecycle callbacks and interceptors.
27 *
28 * @since Common Annotations 1.1
29 * @deprecated This will be removed post Jakarta EE 10 and should be replaced with CDI beans
30 */
31 @Target(TYPE)
32 @Retention(RUNTIME)
33 @Deprecated(/*since = "2.1.1", forRemoval = true*/)
34 public @interface ManagedBean {
35 /**
36 * The name of the Jakarta Managed Bean. Jakarta Managed Bean names must be unique within a
37 * Jakarta EE module. For each named Jakarta Managed Bean, Jakarta EE containers must make
38 * available the following entries in JNDI, using the same naming scheme used
39 * for Jakarta Enterprise Beans components.
40 * <p>
41 * In the application namespace: <p>
42 * java:app/&lt;module-name&gt;/&lt;bean-name&gt; <p>
43 * In the module namespace of the module containing the Jakarta Managed Bean:
44 * <p> java:module/&lt;bean-name&gt;
45 *
46 */
47 public String value() default "";
48 }