File: //lib/fm-agent/dependencies/linux/python3.9/jpype/__pycache__/_jinit.cpython-39.pyc
a
��iO � @ s. d dl Z dgZg Zdd� Zdd� Zdd� ZdS )� N�
onJVMStartc C s t | � | S )a� Decorator to register a function to be called after JVM is started.
This can be used to load module resources that depend on the JVM such as loading
classes. If the JVM is not started, the user supplied function is held in a list until
the JVM starts. When startJVM is called, all functions on the deferred list are called
and the list is cleared. If the JVM is already started, then the function is called
immediately.
Errors from the function will either be raised immediately if the JVM is started, or
from startJVM if the JVM is not yet started.
Args:
func (callable): a function to call when the JVM is started.
)�registerJVMInitializer��func� r �>/usr/lib/fm-agent/dependencies/linux/python3.9/jpype/_jinit.pyr s c C s t �� st�| � n| � d S �N)�_jpype� isStarted�
JInitializers�appendr r r r r , s r c C s t D ]
} | � qt �� d S r )r �clearr r r r �runJVMInitializers4 s r )r �__all__r r r r r r r r �<module> s