feat: Bump version to 2.5.10 in pom.xml and add @Lazy annotation to allAgents in AgentExecutorService

This commit is contained in:
extio-de
2026-04-29 22:40:02 +02:00
parent eaaf9837b3
commit 4fd4c7ab94
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<artifactId>lm-lib</artifactId> <artifactId>lm-lib</artifactId>
<groupId>de.extio</groupId> <groupId>de.extio</groupId>
<name>lm-lib</name> <name>lm-lib</name>
<version>2.5.9</version> <version>2.5.10</version>
<properties> <properties>
<java.version>25</java.version> <java.version>25</java.version>

View File

@@ -15,6 +15,7 @@ import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import de.extio.lmlib.client.Client; import de.extio.lmlib.client.Client;
import de.extio.lmlib.client.ClientService; import de.extio.lmlib.client.ClientService;
@@ -29,6 +30,7 @@ public class AgentExecutorService implements InitializingBean, DisposableBean {
@Autowired @Autowired
private ClientService clientService; private ClientService clientService;
@Lazy
@Autowired(required = false) @Autowired(required = false)
private List<BaseAgent> allAgents; private List<BaseAgent> allAgents;