Package com.vaadin.cdi.internal
Class AnnotationUtil
java.lang.Object
com.vaadin.cdi.internal.AnnotationUtil
Utility methods for accessing CDI related annotations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCDIViewMappings(jakarta.enterprise.inject.spi.BeanManager beanManager) static Set<jakarta.enterprise.inject.spi.Bean<?>> getRootUiBeans(jakarta.enterprise.inject.spi.BeanManager beanManager) Search all UI beans withCDIUIannotation 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 theCDIUIannotation.
-
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 withCDIUIannotation 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 theURLMappingannotation on the rootCDIUI, in web.xml or using Servlet 3.0 annotations.- Returns:
- all UI beans with
CDIUIannotation 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 theCDIUIannotation.- Parameters:
beanManager-- Returns:
- set of UI beans
-
getCDIViewMappings
-