requiresDestruction method

bool requiresDestruction(
  1. Object bean
)

Whether bean needs postProcessBeforeDestruction; true by default. Returning false lets the container skip tracking beans that have no destroy callbacks of their own.

Implementation

bool requiresDestruction(Object bean) => true;