|
|
@ -41,9 +41,7 @@ class TestcontainersLifecycleBeanPostProcessor implements DestructionAwareBeanPo
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
|
|
|
|
public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
|
|
|
|
if (bean instanceof Startable startable) {
|
|
|
|
// Startable extends AutoCloseable will always be closed by context
|
|
|
|
startable.stop();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|