Skip to content

Commit

Permalink
Revert "load services using ServiceLocator if allInstances is empty (#…
Browse files Browse the repository at this point in the history
…5143)"

This reverts commit fa9c488.
  • Loading branch information
wwillard7800 committed Nov 1, 2023
1 parent 8266c0c commit 581a607
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ public synchronized void register(T plugin) {
protected synchronized Collection<T> findAllInstances() {
if (this.allInstances == null) {
this.allInstances = new ArrayList<>();
}

if (this.allInstances.isEmpty()) {
ServiceLocator serviceLocator = Scope.getCurrentScope().getServiceLocator();
this.allInstances.addAll(serviceLocator.findInstances(getPluginClass()));
}
Expand Down

0 comments on commit 581a607

Please sign in to comment.