Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Mar 7, 2022
1 parent af59966 commit de302ae
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

public interface AutoStartProvider {

/**
* Loads the best-suited AutoStartProvider.
*
* @return preferred AutoStartProvider (if any)
* @since 1.1.0
*/
static Optional<AutoStartProvider> get() {
return IntegrationsLoader.load(AutoStartProvider.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Restricts the annotated integration provider to one or more operating system(s).
*
* @since 1.1.0
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Integration Priority.
* <p>
* If multiple implementations for an integration can be provided, the provider with the highest priority will be used.
*
* @since 1.1.0
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
*/
public interface KeychainAccessProvider {

/**
* Loads all available KeychainAccessProvider.
*
* @return a stream of {@link #isSupported() supported} KeychainAccessProviders
* @since 1.1.0
*/
static Stream<KeychainAccessProvider> get() {
return IntegrationsLoader.loadAll(KeychainAccessProvider.class).filter(KeychainAccessProvider::isSupported);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
*/
public interface UiAppearanceProvider {

/**
* Loads the best-suited UiAppearanceProvider.
*
* @return preferred UiAppearanceProvider (if any)
* @since 1.1.0
*/
static Optional<UiAppearanceProvider> get() {
return IntegrationsLoader.load(UiAppearanceProvider.class);
}
Expand Down

0 comments on commit de302ae

Please sign in to comment.