Skip to content

Commit

Permalink
Update AdaptedThreadPoolDestroyPostProcessor.java add default impl (#…
Browse files Browse the repository at this point in the history
…1384)

Fix match case: spring-beans-4.3.21.RELEASE.jar
Forked from: spring-beans-5.1.14.RELEASE.jar
  • Loading branch information
MagikLau authored Jul 6, 2023
1 parent d4bb9e3 commit 10bc5c3
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,20 @@ public void postProcessBeforeDestruction(Object bean, String beanName) throws Be
.ifPresent(executorHolder -> destroyAdaptedThreadPoolExecutor(beanName, executorHolder));
}

@Override
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
// forked default implementation from spring-beans-5.1.14.RELEASE.jar
// org.springframework.beans.factory.config.BeanPostProcessor#postProcessBeforeInitialization
return bean;
}

@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
// forked default implementation from spring-beans-5.1.14.RELEASE.jar
// org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization
return bean;
}

private void destroyAdaptedThreadPoolExecutor(String beanName, ThreadPoolExecutorHolder executorHolder) {
try {
if (log.isDebugEnabled()) {
Expand Down

0 comments on commit 10bc5c3

Please sign in to comment.