/** * Check that a bean can be added to the container (is of the correct type * for the container). * * @param bean * @return */ private boolean validateBean(BEANTYPE bean) { return bean != null && getBeanType().isAssignableFrom(bean.getClass()); }
|| !getBeanType().isAssignableFrom(bean.getClass())) { continue;