static Set<Dependency> getDependencies(Bean<?> bean, BeanManager beanManager, Probe probe) {
        Set<Dependency> dependencies = new HashSet<Dependency>();
        Set<InjectionPoint> injectionPoints = bean.getInjectionPoints();
        if (injectionPoints != null && !injectionPoints.isEmpty()) {
            for (InjectionPoint injectionPoint : injectionPoints) {
                if (injectionPoint.isDelegate()) {
                    // Do not include delegate injection points
                    continue;
                }
                Set<Bean<?>> beans = beanManager.getBeans(injectionPoint.getType(),
                        injectionPoint.getQualifiers().toArray(new Annotation[injectionPoint.getQualifiers().size()]));
                if (beans.isEmpty()) {
                    dependencies.add(Dependency.createUnsatisfied(injectionPoint, null));
                } else {
                    try {
                        Bean<?> dependency = beanManager.resolve(beans);
                        if (isBuiltinBeanButNotExtension(dependency)) {
                            dependency = probe.getBean(Components.getBuiltinBeanId((AbstractBuiltInBean<?>) dependency));
                        }
                        dependencies.add(new Dependency(dependency, injectionPoint));
                    } catch (AmbiguousResolutionException e) {
                        dependencies.add(Dependency.createAmbiguous(injectionPoint, null));
                    }
                }
            }
        }
        return dependencies;
    }
static Set < Dependency > getDependencies ( Bean < ? > bean , BeanManager beanManager , Probe probe ) { Set < Dependency > dependencies = new HashSet < Dependency > ( ) ; Set < InjectionPoint > injectionPoints = bean . getInjectionPoints ( ) ; if ( injectionPoints != null && ! injectionPoints . isEmpty ( ) ) { for ( InjectionPoint injectionPoint : injectionPoints ) { if ( injectionPoint . isDelegate ( ) ) { continue ; } Set < Bean < ? > > beans = beanManager . getBeans ( injectionPoint . getType ( ) , injectionPoint . getQualifiers ( ) . toArray ( new Annotation [ injectionPoint . getQualifiers ( ) . size ( ) ] ) ) ; if ( beans . isEmpty ( ) ) { dependencies . add ( Dependency . createUnsatisfied ( injectionPoint , null ) ) ; } else { try { Bean < ? > dependency = beanManager . resolve ( beans ) ; if ( isBuiltinBeanButNotExtension ( dependency ) ) { dependency = probe . getBean ( Components . getBuiltinBeanId ( ( AbstractBuiltInBean < ? > ) dependency ) ) ; } dependencies . add ( new Dependency ( dependency , injectionPoint ) ) ; } catch ( AmbiguousResolutionException e ) { dependencies . add ( Dependency . createAmbiguous ( injectionPoint , null ) ) ; } } } } return dependencies ; }
@param bean
@param beanManager
@param probe
@return the set of dependencies