Class CoffeePickClients
java.lang.Object
com.io7m.coffeepick.client.vanilla.CoffeePickClients
- All Implemented Interfaces:
CoffeePickClientProviderType
public final class CoffeePickClients extends java.lang.Object implements CoffeePickClientProviderType
The default client provider implementation.
-
Method Summary
Modifier and Type Method Description static CoffeePickClientProviderTypecreate()Create a new client provider, picking up dependencies via ServiceLoader.static CoffeePickClientProviderTypecreateWith(RuntimeRepositoryProviderRegistryType repositories)Create a new client provider.CoffeePickClientTypenewClient(CoffeePickParsersType parsers, CoffeePickSerializersType serializers, java.nio.file.Path base_directory, java.net.http.HttpClient http)Create a new client.
-
Method Details
-
create
Create a new client provider, picking up dependencies via ServiceLoader.- Returns:
- A new client provider
-
createWith
public static CoffeePickClientProviderType createWith(RuntimeRepositoryProviderRegistryType repositories)Create a new client provider.- Parameters:
repositories- The repository registry- Returns:
- A new client provider
-
newClient
public CoffeePickClientType newClient(CoffeePickParsersType parsers, CoffeePickSerializersType serializers, java.nio.file.Path base_directory, java.net.http.HttpClient http) throws java.io.IOExceptionDescription copied from interface:CoffeePickClientProviderTypeCreate a new client. The client will use the given directory for configuration data and inventory.- Specified by:
newClientin interfaceCoffeePickClientProviderType- Parameters:
parsers- The parser providerserializers- The serializer providerbase_directory- The base directoryhttp- The HTTP client that will be used- Returns:
- A new client
- Throws:
java.io.IOException- On errors
-