Skip to content

Commit

Permalink
Create provider to PutQuery in communication-query
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Jun 21, 2022
1 parent e9dcf22 commit de4aaf3
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -63,9 +63,18 @@ static PutQuery parse(String query) {
()-> ServiceLoader.load(PutQueryProvider.class)).apply(query);
}

/**
* Returns the {@link PutQueryProvider} instance
* @return the PutQueryProvider instance
* @throws jakarta.nosql.ProviderNotFoundException when the provider is not found
*/
static PutQueryProvider getProvider() {
return ServiceLoaderProvider.get(PutQueryProvider.class,
()-> ServiceLoader.load(PutQueryProvider.class));
}

/**
* A provider to {@link PutQuery}
* A provider to {@link PutQuery}, this provider converts text into {@link PutQuery}
*/
interface PutQueryProvider extends Function<String, PutQuery> {

Expand Down

0 comments on commit de4aaf3

Please sign in to comment.