Top Description Inners Methods
jakarta.faces.annotation

public @Interface ManagedProperty

extends Annotation
Known Direct Implementers
jakarta.faces.annotation.ManagedProperty.Literal
Annotations
@Qualifier
@Target:FIELD
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.FIELD, .RetentionPolicy.RUNTIME

The presence of this annotation (along with @Inject) on a field of any type causes the value returned from evaluating an expression language expression to be injected as the value of that field. This expression will be evaluated using Application#evaluateExpressionGet(jakarta.faces.context.FacesContext, String, Class), which in turn implies that the FacesContext#getCurrentInstance() must be available at the moment of the evaluation.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ManagedProperty.Literal

Supports inline instantiation of the ManagedProperty qualifier.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the value.
value
()

Taken to be the value that is injected into the field.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

Taken to be the value that is injected into the field.

Returns:String

the value.

Annotations
@Nonbinding
jakarta.faces.annotation back to summary

public final Class ManagedProperty.Literal

extends AnnotationLiteral<ManagedProperty>
implements ManagedProperty
Class Inheritance
All Implemented Interfaces
jakarta.faces.annotation.ManagedProperty, java.lang.annotation.Annotation

Supports inline instantiation of the ManagedProperty qualifier.

Since
4.0

Field Summary

Modifier and TypeField and Description
public static final ManagedProperty.Literal
INSTANCE

Instance of the ManagedProperty qualifier.

private static final long
private final String

Constructor Summary

AccessConstructor and Description
private
Literal(String value)

Method Summary

Modifier and TypeMethod and Description
public static ManagedProperty.Literal
of(String value)

public String
value()

Implements jakarta.faces.annotation.ManagedProperty.value.

Taken to be the value that is injected into the field.

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final ManagedProperty.Literal INSTANCE

Instance of the ManagedProperty qualifier.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

valueback to summary
private final String value

Constructor Detail

Literalback to summary
private Literal(String value)

Method Detail

ofback to summary
public static ManagedProperty.Literal of(String value)
valueback to summary
public String value()

Implements jakarta.faces.annotation.ManagedProperty.value.

Doc from jakarta.faces.annotation.ManagedProperty.value.

Taken to be the value that is injected into the field.

Returns:String

the value.

Annotations
@Override