Class AtmosphereAnnotations

java.lang.Object
org.atmosphere.cpr.AtmosphereAnnotations

public final class AtmosphereAnnotations extends Object
Single source of truth for all Atmosphere annotation types and their processor mappings.

All modules that need the list of core Atmosphere annotations should reference this class rather than maintaining their own copy. The one exception is AnnotationScanningServletContainerInitializer whose @HandlesTypes annotation requires compile-time class literals and cannot delegate to a runtime list.

  • Method Details

    • coreAnnotations

      public static List<Class<? extends Annotation>> coreAnnotations()
      Returns the unmodifiable list of all core Atmosphere annotation types.
      Returns:
      the core annotations
    • coreAnnotationNames

      public static List<String> coreAnnotationNames()
      Returns the fully-qualified class names of all core Atmosphere annotations. Useful for modules that work with string-based annotation names (e.g. Jandex DotName).
      Returns:
      the core annotation names