Class PriorityExtension
java.lang.Object
fr.paris.lutece.plugins.priority.extension.PriorityExtension
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension
This extension provides a way to handle the @Priority annotation for @Alternative based on a config value through the use of @LutecePriority.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprioritize(jakarta.enterprise.inject.spi.ProcessAnnotatedType<?> pat) Adds the @Priority annotation if the config value from the @LutecePriority annotation is resolved to a strictly positive value.
-
Constructor Details
-
PriorityExtension
public PriorityExtension()
-
-
Method Details
-
prioritize
public void prioritize(@Observes jakarta.enterprise.inject.spi.ProcessAnnotatedType<?> pat) Adds the @Priority annotation if the config value from the @LutecePriority annotation is resolved to a strictly positive value.- Parameters:
pat- The CDI annotated type
-