Top Description Annotations
[default module]

Package javax.faces.bean

Annotations
@Deprecated

Deprecated

These javadoc files constitute the “Faces Managed Bean Annotation Specification for Containers Conforming to Servlet 2.5 and Beyond”

This package is now deprecated. The specification for managed beans from JSF has been placed into its own specifications, namely Managed Beans and CDI.

The annotations must be processed as specified in section JSF.11.5.1.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
ApplicationScoped

Deprecated This has been replaced by javax.enterprise.context.ApplicationScoped, which is a CDI build-in scope with similar semantics.

When this annotation, along with ManagedBean is found on a class, the runtime must act as if a <managed-bean-scope>application<managed-bean-scope> element was declared for the corresponding managed bean.

public @interface
CustomScoped

Deprecated This has been replaced by CDI custom scopes and javax.enterprise.context.spi.Context. See 2.4.2 and 6.2 of the CDI specification for further details.

When this annotation, along with ManagedBean is found on a class, the runtime must act as if a <managed-bean-scope>VALUE<managed-bean-scope> element was declared for the corresponding managed bean, where VALUE is the value of the value attribute, which must be an EL expression that evaluates to a Map.

public @interface
ManagedBean

Deprecated This has been replaced by the Managed Beans specification in general and specifically the dependency injection, scopes and naming from the CDI specification.

The presence of this annotation on a class automatically registers the class with the runtime as a managed bean class.

public @interface
ManagedProperty

Deprecated This has been replaced by javax.faces.annotation.ManagedProperty, which is a CDI build-in bean with similar semantics

The presence of this annotation on a field of a class annotated with ManagedBean instructs the system to inject a value into this property as described in section JSF.5.3 of the spec prose document in the <managed-property> subsection.

public @interface
NoneScoped

Deprecated This has been replaced by javax.enterprise.context.Dependent, which is a CDI build-in scope with approximately similar semantics.

When this annotation, along with ManagedBean is found on a class, the runtime must act as if a <managed-bean-scope>none<managed-bean-scope> element was declared for the corresponding managed bean.

public @interface
ReferencedBean

Deprecated The referenced-bean concept was used for a design time promise which however did not achieve widespread adoption. There is no direct replacement for this other than using the XML variant in faces-config.xml.

The presence of this annotation on a class is equivalent to the referenced-bean element in the application configuration resources.

public @interface
RequestScoped

Deprecated This has been replaced by javax.enterprise.context.RequestScoped, which is a CDI build-in scope with similar semantics.

When this annotation, along with ManagedBean is found on a class, the runtime must act as if a <managed-bean-scope>request<managed-bean-scope> element was declared for the corresponding managed bean.

public @interface
SessionScoped

Deprecated This has been replaced by javax.enterprise.context.SessionScoped, which is a CDI build-in scope with similar semantics.

When this annotation, along with ManagedBean is found on a class, the runtime must act as if a <managed-bean-scope>session<managed-bean-scope> element was declared for the corresponding managed bean.

public @interface
ViewScoped

Deprecated This has been replaced by javax.faces.view.ViewScoped. The functionality of this corresponding annotation is identical to this one, but it is implemented as a CDI custom scope.

When this annotation, along with ManagedBean is found on a class, the runtime must act as if a <managed-bean-scope>view<managed-bean-scope> element was declared for the corresponding managed bean.