Annotation Interface SkipIfPortableExtensionPresent


@Target(TYPE) @Retention(RUNTIME) public @interface SkipIfPortableExtensionPresent
If a build compatible extension is annotated @SkipIfPortableExtensionPresent, it is ignored when the CDI container can execute portable extensions and determines that a portable extension of given class is present.

It is expected that the specified portable extension class will mirror the functionality of the annotated build compatible extension. This allows portable extensions and build compatible extensions to coexist.

Since:
4.0
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Extension>
    A class implementing Extension that is expected to mirror the functionality of the annotated build compatible extension.
  • Element Details

    • value

      Class<? extends Extension> value
      A class implementing Extension that is expected to mirror the functionality of the annotated build compatible extension.
      Returns:
      a portable extension class