Class PriorityExtension

java.lang.Object
fr.paris.lutece.plugins.priority.extension.PriorityExtension
All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension

public class PriorityExtension extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    prioritize(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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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