Create BuilderSupplier interface

- Fixes #607
This commit is contained in:
Janne Valkealahti
2023-01-08 13:38:33 +00:00
parent 9b4e347633
commit f91b255bda
20 changed files with 56 additions and 76 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2022 the original author or authors.
* Copyright 2022-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -137,6 +137,14 @@ public interface CommandRegistration {
return new DefaultBuilder();
}
/**
* Interface used to supply instance of a {@link Builder}. Meant to be a single
* point access to centrally configured builder in an application context.
*/
@FunctionalInterface
public interface BuilderSupplier extends Supplier<Builder> {
}
/**
* Spec defining an option.
*/