Top Description Inners Methods
jakarta.faces.component.behavior

public @Interface FacesBehavior

extends Annotation
Known Direct Implementers
jakarta.faces.component.behavior.FacesBehavior.Literal
Annotations
@Retention:RUNTIME
@Target:TYPE, FIELD, METHOD, PARAMETER
@Inherited
@Qualifier
Static Imports
java.lang.annotation.ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE, .RetentionPolicy.RUNTIME

The presence of this annotation on a class automatically registers the class with the runtime as a Behavior. The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated by calling jakarta.faces.application.Application#createBehavior(java.lang.String)

Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
FacesBehavior.Literal

Supports inline instantiation of the FacesBehavior qualifier.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if CDI managed, false otherwise.
managed
()

The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter.

public String

Returns:

the behavior-id
value
()

The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

managedback to summary
public boolean managed()

The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter.

Returns:boolean

true if CDI managed, false otherwise.

valueback to summary
public String value()

The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated.

Returns:String

the behavior-id

jakarta.faces.component.behavior back to summary

public final Class FacesBehavior.Literal

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

Supports inline instantiation of the FacesBehavior qualifier.

Since
4.0

Field Summary

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

Instance of the FacesBehavior qualifier.

private final boolean
private static final long
private final String

Constructor Summary

AccessConstructor and Description
private
Literal(String value, boolean managed)

Method Summary

Modifier and TypeMethod and Description
public boolean
managed()

Implements jakarta.faces.component.behavior.FacesBehavior.managed.

The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter.

public static FacesBehavior.Literal
of(String value, boolean managed)

public String
value()

Implements jakarta.faces.component.behavior.FacesBehavior.value.

The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated.
Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

INSTANCEback to summary
public static final FacesBehavior.Literal INSTANCE

Instance of the FacesBehavior qualifier.

managedback to summary
private final boolean managed
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, boolean managed)

Method Detail

managedback to summary
public boolean managed()

Implements jakarta.faces.component.behavior.FacesBehavior.managed.

Doc from jakarta.faces.component.behavior.FacesBehavior.managed.

The value of this annotation attribute is taken to be an indicator that flags whether or not the given converter is a CDI managed converter.

Returns:boolean

true if CDI managed, false otherwise.

Annotations
@Override
ofback to summary
public static FacesBehavior.Literal of(String value, boolean managed)
valueback to summary
public String value()

Implements jakarta.faces.component.behavior.FacesBehavior.value.

Doc from jakarta.faces.component.behavior.FacesBehavior.value.

The value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated.

Returns:String

the behavior-id

Annotations
@Override