|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* Copyright 2002-2025 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -18,6 +18,7 @@ package org.springframework.scheduling.config; |
|
|
|
|
|
|
|
|
|
|
|
import org.w3c.dom.Element; |
|
|
|
import org.w3c.dom.Element; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.config.BeanDefinition; |
|
|
|
import org.springframework.beans.factory.support.BeanDefinitionBuilder; |
|
|
|
import org.springframework.beans.factory.support.BeanDefinitionBuilder; |
|
|
|
import org.springframework.beans.factory.support.RootBeanDefinition; |
|
|
|
import org.springframework.beans.factory.support.RootBeanDefinition; |
|
|
|
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser; |
|
|
|
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser; |
|
|
|
@ -53,6 +54,7 @@ public class ExecutorBeanDefinitionParser extends AbstractSingleBeanDefinitionPa |
|
|
|
if (StringUtils.hasText(poolSize)) { |
|
|
|
if (StringUtils.hasText(poolSize)) { |
|
|
|
builder.addPropertyValue("poolSize", poolSize); |
|
|
|
builder.addPropertyValue("poolSize", poolSize); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
builder.setRole(BeanDefinition.ROLE_INFRASTRUCTURE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void configureRejectionPolicy(Element element, BeanDefinitionBuilder builder) { |
|
|
|
private void configureRejectionPolicy(Element element, BeanDefinitionBuilder builder) { |
|
|
|
|