Class AnnotationUtil

java.lang.Object
com.vaadin.cdi.internal.AnnotationUtil

public class AnnotationUtil extends Object
Utility methods for accessing CDI related annotations.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<String>
    getCDIViewMappings(jakarta.enterprise.inject.spi.BeanManager beanManager)
     
    static Set<jakarta.enterprise.inject.spi.Bean<?>>
    getRootUiBeans(jakarta.enterprise.inject.spi.BeanManager beanManager)
    Search all UI beans with CDIUI annotation without a path parameter (root beans).
    static Set<jakarta.enterprise.inject.spi.Bean<?>>
    getUiBeans(jakarta.enterprise.inject.spi.BeanManager beanManager)
    List all UI beans (whether or not they have the CDIUI annotation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnnotationUtil

      public AnnotationUtil()
  • Method Details

    • getRootUiBeans

      public static Set<jakarta.enterprise.inject.spi.Bean<?>> getRootUiBeans(jakarta.enterprise.inject.spi.BeanManager beanManager)
      Search all UI beans with CDIUI annotation without a path parameter (root beans). The actual URL of the UI will be preceded by the servlet URL mapping that can be specified with the URLMapping annotation on the root CDIUI, in web.xml or using Servlet 3.0 annotations.
      Returns:
      all UI beans with CDIUI annotation without path
    • getUiBeans

      public static Set<jakarta.enterprise.inject.spi.Bean<?>> getUiBeans(jakarta.enterprise.inject.spi.BeanManager beanManager)
      List all UI beans (whether or not they have the CDIUI annotation.
      Parameters:
      beanManager -
      Returns:
      set of UI beans
    • getCDIViewMappings

      public static List<String> getCDIViewMappings(jakarta.enterprise.inject.spi.BeanManager beanManager)