Top Description Inners Methods
jakarta.faces.annotation

public @Interface FacesConfig

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

The presence of this annotation on a class deployed within an application guarantees activation of Jakarta Faces and its CDI specific features, even when /WEB-INF/faces-config.xml is absent and FacesServlet is not explicitly registered.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FacesConfig.Literal

Supports inline instantiation of the FacesConfig qualifier.

public static enum
FacesConfig.Version

Deprecated for removal since 4.0. It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.
The Faces spec version

Method Summary

Modifier and TypeMethod and Description
public FacesConfig.Version

Returns:

the spec version for which the features must be enabled.
version
()

Deprecated for removal since 4.0. It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.

The value of this attribute indicates that features corresponding to this version must be enabled for this application.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

versionback to summary
public FacesConfig.Version version()

Deprecated

for removal since 4.0.

It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.

The value of this attribute indicates that features corresponding to this version must be enabled for this application.

Returns:FacesConfig.Version

the spec version for which the features must be enabled.

Annotations
@Nonbinding
@Deprecated
forRemoval:true
since:4.0
jakarta.faces.annotation back to summary

public final Class FacesConfig.Literal

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

Supports inline instantiation of the FacesConfig qualifier.

Since
4.0

Field Summary

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

Instance of the FacesConfig qualifier.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FacesConfig.Version
version()

Implements jakarta.faces.annotation.FacesConfig.version.

Deprecated as a consequence of FacesConfig.Version being deprecated.

The value of this attribute indicates that features corresponding to this version must be enabled for this application.

Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final FacesConfig.Literal INSTANCE

Instance of the FacesConfig qualifier.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

Constructor Detail

Literalback to summary
public Literal()

Method Detail

versionback to summary
public FacesConfig.Version version()

Implements jakarta.faces.annotation.FacesConfig.version.

Doc from jakarta.faces.annotation.FacesConfig.version.

Deprecated

as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

The value of this attribute indicates that features corresponding to this version must be enabled for this application.

Returns:FacesConfig.Version

the spec version for which the features must be enabled.

Annotations
@Override
jakarta.faces.annotation back to summary

public final Enum FacesConfig.Version

extends Enum<FacesConfig.Version>
Class Inheritance
Annotations
@Deprecated
forRemoval:true
since:4.0

Deprecated

for removal since 4.0.

It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.

The Faces spec version

Field Summary

Modifier and TypeField and Description
public static final FacesConfig.Version
JSF_2_3

This value indicates CDI should be used for Jakarta Expression Language resolution as well as enabling Jakarta Server Faces CDI injection, as specified in Section 5.6.3 "CDI for EL Resolution" and Section 5.9 "CDI Integration".

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FacesConfig.Version
valueOf(String name)

Deprecated as a consequence of FacesConfig.Version being deprecated.
public static FacesConfig.Version[]
values()

Deprecated as a consequence of FacesConfig.Version being deprecated.
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

JSF_2_3back to summary
public static final FacesConfig.Version JSF_2_3

Deprecated

as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

This value indicates CDI should be used for Jakarta Expression Language resolution as well as enabling Jakarta Server Faces CDI injection, as specified in Section 5.6.3 "CDI for EL Resolution" and Section 5.9 "CDI Integration".

Constructor Detail

Versionback to summary
private Version()

Method Detail

valueOfback to summary
public static FacesConfig.Version valueOf(String name)

Deprecated

as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.

valuesback to summary
public static FacesConfig.Version[] values()

Deprecated

as a consequence of FacesConfig.Version being deprecated. See corresponding docs for further information.