public final class Environment extends Object implements AutoCloseable
When starting to use this library, you should create an instance of this class and hold on to it until you are finished with this library.
Creating an Environment
is started using createInitializer()
. Using the Initializer
, global settings can be configured for the library and, at last, the environment created.
Modifier and Type | Class and Description |
---|---|
static class |
Environment.Initializer
Initializer for the global Environment needed by this library. |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static Environment.Initializer |
createInitializer()
Starts the initialization of the global
Environment . |
protected void |
finalize() |
public void close()
close
in interface AutoCloseable
@NotNull public static Environment.Initializer createInitializer()
Environment
.
The returned object allows to configure how and what initialization will be done.
This function can only be called once.