Skip to content

Commit

Permalink
Add default for EnginePlugin.getEngineFactory
Browse files Browse the repository at this point in the history
Adds default implementation for getEngineFactory in EnginePlugin. The
default just returns Optional.empty(), allowing plugin developers to
implement this plugin without implementing this method.

Signed-off-by: John Mazanec <[email protected]>
  • Loading branch information
jmazanec15 committed Mar 9, 2022
1 parent 5a9a114 commit cc05bcc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public interface EnginePlugin {
*
* @return an optional engine factory
*/
Optional<EngineFactory> getEngineFactory(IndexSettings indexSettings);
default Optional<EngineFactory> getEngineFactory(IndexSettings indexSettings) {
return Optional.empty();
}

/**
* EXPERT:
Expand Down

0 comments on commit cc05bcc

Please sign in to comment.