private Bean<?> findNormalScopedDependant(CreationalContextImpl<?> weldCreationalContext) { CreationalContextImpl<?> parent = weldCreationalContext.getParentCreationalContext(); if (parent != null) { if (parent.getContextual() instanceof Bean) { Bean<?> bean = (Bean<?>) parent.getContextual(); if (isNormalScope(bean.getScope())) { return bean; } else { return findNormalScopedDependant(parent); } } } return null; }
private Bean<?> findNormalScopedDependant(CreationalContextImpl<?> weldCreationalContext) { CreationalContextImpl<?> parent = weldCreationalContext.getParentCreationalContext(); if (parent != null) { if (parent.getContextual() instanceof Bean) { Bean<?> bean = (Bean<?>) parent.getContextual(); if (isNormalScope(bean.getScope())) { return bean; } else { return findNormalScopedDependant(parent); } } } return null; }
private Bean<?> findNormalScopedDependant(CreationalContextImpl<?> weldCreationalContext) { CreationalContextImpl<?> parent = weldCreationalContext.getParentCreationalContext(); if (parent != null) { if (parent.getContextual() instanceof Bean) { Bean<?> bean = (Bean<?>) parent.getContextual(); if (isNormalScope(bean.getScope())) { return bean; } else { return findNormalScopedDependant(parent); } } } return null; }
private Bean<?> findNormalScopedDependant(CreationalContextImpl<?> weldCreationalContext) { CreationalContextImpl<?> parent = weldCreationalContext.getParentCreationalContext(); if (parent != null) { if (parent.getContextual() instanceof Bean) { Bean<?> bean = (Bean<?>) parent.getContextual(); if (isNormalScope(bean.getScope())) { return bean; } else { return findNormalScopedDependant(parent); } } } return null; }
private Bean<?> findNormalScopedDependant(CreationalContextImpl<?> weldCreationalContext) { CreationalContextImpl<?> parent = weldCreationalContext.getParentCreationalContext(); if (parent != null) { if (parent.getContextual() instanceof Bean) { Bean<?> bean = (Bean<?>) parent.getContextual(); if (isNormalScope(bean.getScope())) { return bean; } else { return findNormalScopedDependant(parent); } } } return null; }