Skip to content

Commit

Permalink
Rename to assignSubject
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Aug 16, 2024
1 parent d6be989 commit 48bd43c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void initializeIdentityAwarePlugins(List<IdentityAwarePlugin> identityAwa
if (identityAwarePlugins != null) {
for (IdentityAwarePlugin plugin : identityAwarePlugins) {
Subject subject = new NoopPluginSubject(threadPool);
plugin.initializePlugin(subject);
plugin.assignSubject(subject);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void initializeIdentityAwarePlugins(List<IdentityAwarePlugin> identityAwa
if (identityAwarePlugins != null) {
for (IdentityAwarePlugin plugin : identityAwarePlugins) {
Subject subject = new NoopPluginSubject(threadPool);
plugin.initializePlugin(subject);
plugin.assignSubject(subject);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ public interface IdentityAwarePlugin {
* @param pluginSystemSubject A subject for running transport actions in the plugin system context for system index
* interaction
*/
default void initializePlugin(Subject pluginSystemSubject) {}
default void assignSubject(Subject pluginSystemSubject) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static class TestPlugin extends Plugin implements IdentityAwarePlugin {
private Subject subject;

@Override
public void initializePlugin(Subject subject) {
public void assignSubject(Subject subject) {
this.subject = subject;
}

Expand Down

0 comments on commit 48bd43c

Please sign in to comment.