Package com.backblaze.b2.client
Class B2StorageClientFactoryPathBasedImpl
- java.lang.Object
-
- com.backblaze.b2.client.B2StorageClientFactoryPathBasedImpl
-
- All Implemented Interfaces:
B2StorageClientFactory
public class B2StorageClientFactoryPathBasedImpl extends java.lang.Object implements B2StorageClientFactory
This implementation of B2StorageClientFactory has a list of registered class names and instantiates the first one of those classes which can be loaded. Instances of this class start out knowing about the class names for all of the official implementations. If it makes sense to let code that uses the library register implementations, we can make registerClass() public, but it's possible that it'll be easier for them to just make their own factory entirely. THREAD-SAFE.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2StorageClient
create(B2ClientConfig config)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.backblaze.b2.client.B2StorageClientFactory
create, create
-
-
-
-
Method Detail
-
create
public B2StorageClient create(B2ClientConfig config)
- Specified by:
create
in interfaceB2StorageClientFactory
- Parameters:
config
- the configuration to use.- Returns:
- a new B2StorageClient or throws a RuntimeException if it can't make one.
-
-