// The annotation @CDIUI can have a value, so using it as the type
// parameter of AnnotationLiteral is somewhat problematic.
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) {
        // The annotation @CDIUI can have a value, so using it as the type
        // parameter of AnnotationLiteral is somewhat problematic.
        Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class,
                new AnnotationLiteral<Any>() {
                });
        return uiBeans;
    }
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) {
// The annotation @CDIUI can have a value, so using it as the type
// parameter of AnnotationLiteral is somewhat problematic.
Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class,
new AnnotationLiteral<Any>() {
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) {
// The annotation @CDIUI can have a value, so using it as the type
// parameter of AnnotationLiteral is somewhat problematic.
Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class,
new AnnotationLiteral<Any>() {
});
return uiBeans;
}
public static Set<Bean<?>> getUiBeans(BeanManager beanManager) {
// The annotation @CDIUI can have a value, so using it as the type
// parameter of AnnotationLiteral is somewhat problematic.
Set<Bean<?>> uiBeans = beanManager.getBeans(UI.class,
new AnnotationLiteral<Any>() {
});
return uiBeans;
}