javax.annotation
注释类型 ManagedBean


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ManagedBean

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.

从以下版本开始:
Common Annotations 1.1

可选元素摘要
 String value
          The name of the Managed Bean.
 

value

public abstract String value
The name of the Managed Bean. Managed Bean names must be unique within a Java EE module. For each named Managed Bean, Java EE containers must make available the following entries in JNDI, using the same naming scheme used for EJB components.

In the application namespace:

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

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

java:module/<bean-name>

默认值:
""


Copyright © 2013. All Rights Reserved.