We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 262f31b commit d3b3436Copy full SHA for d3b3436
logicaldoc-core/src/main/java/com/logicaldoc/core/task/DefaultSchedulerFactory.java
@@ -75,7 +75,11 @@ public void setApplicationContext(ApplicationContext applicationContext) {
75
Collection<Task> tasks = manager.getTasks(applicationContext);
76
for (Task task : tasks) {
77
String name = task.getName();
78
- Object trigger = applicationContext.getBean(name + "Trigger");
+ String triggerName = name + "Trigger";
79
+ Object trigger = applicationContext.getBean(triggerName);
80
+ if (trigger == null)
81
+ trigger = applicationContext
82
+ .getBean(Character.toLowerCase(triggerName.charAt(0)) + triggerName.substring(1));
83
if (trigger instanceof Trigger trgr) {
84
triggers.add(trgr);
85
} else
0 commit comments