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
All Methods Static Methods Instance Methods Concrete Methods 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.io7m.coffeepick.api.CoffeePickClientProviderType
newClient
-
-
-
-
Method Detail
-
create
public static CoffeePickClientProviderType 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.IOException
Description 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
-
-