bean.setDestroyMethod(Reflection.findMethod(bean.getBeanClass(), destroyMethodName)); if (null == bean.getDestroyMethod()) { throw new BeanDefinitionException("destroy method '" + initMethodName + "' not found in class '" + beanClassName + "', source : " + reader.getSource());