Skip to content

Commit

Permalink
attempt to improve bean order initialization in task modules
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Oct 12, 2023
1 parent a1d40e9 commit 35c99ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.jetbrains.annotations.Nullable;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import com.evolveum.midpoint.schema.result.OperationResult;
Expand All @@ -37,6 +38,7 @@
* - SHOULD NOT update task objects themselves.
* - Even it SHOULD NOT query task state. All of this has to be done by callers.
*/
@DependsOn("quartzInitializationHelper")
@Component
public class LocalScheduler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.quartz.impl.StdSchedulerFactory;
import org.quartz.listeners.SchedulerListenerSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;

import com.evolveum.midpoint.schema.result.OperationResult;
Expand All @@ -36,6 +37,7 @@
/**
* Helps with Quartz starting and stopping.
*/
@DependsOn("taskManagerConfiguration")
@Component
class QuartzInitializationHelper {

Expand Down

0 comments on commit 35c99ea

Please sign in to comment.