jodd-petite/src/main/java/jodd/petite/scope/ShutdownAwareScope.java
protected void registerDestroyableBeans(final BeanData beanData) {
		if (!isBeanDestroyable(beanData)) {
			return;
		}
		if (destroyableBeans == null) {
			destroyableBeans = new ArrayList<>();
		}
		destroyableBeans.add(beanData);
	}
protected void registerDestroyableBeans(final BeanData beanData) {
		if (!isBeanDestroyable(beanData)) {
			return;
		}
		if (destroyableBeans == null) {
			destroyableBeans = new ArrayList<>();
		}
		destroyableBeans.add(beanData);
	}
Checks if bean data is destroyable (has destroy methods) and
registers it for later {@link #shutdown()}.