@Retention(RUNTIME)
@Target({TYPE,FIELD,METHOD,PARAMETER})
@Inherited
@Qualifier
public @interface FacesBehavior
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
Application.createBehavior(java.lang.String)
- Since:
- 2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Supports inline instantiation of theFacesBehavior
qualifier. -
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
The value of this annotation attribute is taken to be an indicator that flags whether or not the given behavior is a CDI managed behavior.
-
Element Details
-
value
String valueThe value of this annotation attribute is taken to be the behavior-id with which instances of this class of behavior can be instantiated.- Returns:
- the behavior-id
-
managed
boolean managedThe value of this annotation attribute is taken to be an indicator that flags whether or not the given behavior is a CDI managed behavior.
- Returns:
- true if CDI managed, false otherwise.
- Default:
false
-