接口 DestructionAwareBeanPostProcessor

    • 方法详细资料

      • requiresDestruction

        default boolean requiresDestruction​(Object bean)
        Determine whether the given bean instance requires destruction by this post-processor.

        The default implementation returns true. If a pre-5 implementation of DestructionAwareBeanPostProcessor does not provide a concrete implementation of this method, Spring silently assumes true as well.

        参数:
        bean - the bean instance to check
        返回:
        true if postProcessBeforeDestruction(java.lang.Object, java.lang.String) is supposed to be called for this bean instance eventually, or false if not needed
        从以下版本开始:
        4.3