public class PyLibInitializer extends Object
PyLib
is done at class initialization time via system properties.
This is a potentially delicate time in the lifecycle of a program - and errors around order of
initialization can be hard to track down. To safely and programmatically configure jpy, we must
ensure that we are the ones causing the initialization of PyLib
(and DL
).Constructor and Description |
---|
PyLibInitializer() |
Modifier and Type | Method and Description |
---|---|
static void |
initPyLib(String pyLib,
String jpyLib,
String jdlLib)
|
static boolean |
isDlInitialized()
Returns true iff the
DL class has been initialized |
static boolean |
isPyLibInitialized()
Returns true iff the
PyLib class has been initialized |
public static boolean isPyLibInitialized()
PyLib
class has been initializedpublic static boolean isDlInitialized()
DL
class has been initializedpublic static void initPyLib(String pyLib, String jpyLib, String jdlLib)
PyLib
and DL
being
uninitialized. Any consumers who want to programmatically configure jpy should call this method
first.pyLib
- the python libraryjpyLib
- the jpy libraryjdlLib
- the jdl libraryCopyright © 2014–2022 Brockmann Consult GmbH. All rights reserved.