Class SzCoreEnvironment

java.lang.Object
com.senzing.sdk.core.SzCoreEnvironment
All Implemented Interfaces:
SzEnvironment

public class SzCoreEnvironment extends Object implements SzEnvironment
Provides the core implementation of SzEnvironment that directly initializes the Senzing SDK modules and provides management of the Senzing environment in this process.

Usage:

// get the settings (varies by application)
String settings = getSettings();

// get the instance name (varies by application)
String instanceName = getInstanceName();

// construct the environment
SzEnvironment env = SzCoreEnvironment.newBuilder()
                                     .instanceName(instanceName)
                                     .settings(settings)
                                     .verboseLogging(false)
                                     .build();

// use the environment for some time (usually as long as application is running)
...

// destroy the environment when done (sometimes in a finally block)
env.destroy();

.
Since:
4.0.0