public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager) { final List<RuntimeException> problems = new ArrayList<RuntimeException>(); final Set<CommonBean<?>> specializedBeans = new HashSet<CommonBean<?>>(); for (Bean<?> bean : beans) { validateBean(bean, specializedBeans, manager, problems); } if (!problems.isEmpty()) { if (problems.size() == 1) { throw problems.get(0); } else { throw new DeploymentException(problems); } } }
public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager) { final List<RuntimeException> problems = new ArrayList<RuntimeException>(); final Set<CommonBean<?>> specializedBeans = new HashSet<CommonBean<?>>(); for (Bean<?> bean : beans) { validateBean(bean, specializedBeans, manager, problems); } if (!problems.isEmpty()) { if (problems.size() == 1) { throw problems.get(0); } else { throw new DeploymentException(problems); } } }
public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager) { final List<RuntimeException> problems = new ArrayList<RuntimeException>(); final Set<CommonBean<?>> specializedBeans = new HashSet<CommonBean<?>>(); for (Bean<?> bean : beans) { validateBean(bean, specializedBeans, manager, problems); } if (!problems.isEmpty()) { if (problems.size() == 1) { throw problems.get(0); } else { throw new DeploymentException(problems); } } }
public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager) { final List<RuntimeException> problems = new ArrayList<RuntimeException>(); final Set<CommonBean<?>> specializedBeans = new HashSet<CommonBean<?>>(); for (Bean<?> bean : beans) { validateBean(bean, specializedBeans, manager, problems); } if (!problems.isEmpty()) { if (problems.size() == 1) { throw problems.get(0); } else { throw new DeploymentException(problems); } } }
public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager) { final List<RuntimeException> problems = new ArrayList<RuntimeException>(); final Set<CommonBean<?>> specializedBeans = new HashSet<CommonBean<?>>(); for (Bean<?> bean : beans) { validateBean(bean, specializedBeans, manager, problems); } if (!problems.isEmpty()) { if (problems.size() == 1) { throw problems.get(0); } else { throw new DeploymentException(problems); } } }
public void validateBeans(Collection<? extends Bean<?>> beans, BeanManagerImpl manager) { final List<RuntimeException> problems = new ArrayList<RuntimeException>(); final Set<CommonBean<?>> specializedBeans = new HashSet<CommonBean<?>>(); for (Bean<?> bean : beans) { validateBean(bean, specializedBeans, manager, problems); } if (!problems.isEmpty()) { if (problems.size() == 1) { throw problems.get(0); } else { throw new DeploymentException(problems); } } }