Setup |
The SetupJVMWrapperT type exposes the following members.
| Name | Description | |
|---|---|---|
| SetupJVMWrapperT | Initializes a new instance of the SetupJVMWrapperT class |
| Name | Description | |
|---|---|---|
| ClassPath |
The starting JVM class path. Further path can be added later.
(Inherited from SetupJVMWrapper) | |
| DebugSuspendFlag |
Enables Debug
(Inherited from SetupJVMWrapper) | |
| DisableOpenOnJavaNio | to close access to java.nio module i.e. removes --add-opens=java.base/java.nio=ALL-UNNAMED on JVM parameters, default value is (Inherited from SetupJVMWrapper) | |
| DynJVM |
The dynamic entry point for JVM operations.
It permits to write code in .NET languages using a syntax not far from the one available in Java.
(Inherited from SetupJVMWrapper) | |
| EnableCriticalMethods |
Always enable/disable use of critical methods within JNI interface, to get/set native type arrays, single wrapper for EnableCriticalMethodsOnGet and EnableCriticalMethodsOnSet (Inherited from SetupJVMWrapper) Obsolete | |
| EnableCriticalMethodsOnGet |
Always enable/disable use of critical methods, within JNI interface, to get native type arrays
(Inherited from SetupJVMWrapper) Obsolete | |
| EnableCriticalMethodsOnGetThreshold |
Enable/Disable use of critical methods, within JNI interface, to get native type arrays if the length is over the EnableCriticalMethodsOnSetThreshold. Default is MaxValue (Inherited from SetupJVMWrapper) Obsolete | |
| EnableCriticalMethodsOnSet |
Always enable/disable use of critical methods, within JNI interface, to set native type arrays
(Inherited from SetupJVMWrapper) Obsolete | |
| EnableCriticalMethodsOnSetThreshold |
Enable/Disable use of critical methods, within JNI interface, to set native type arrays if the length is over the EnableCriticalMethodsOnSetThreshold. Default is MaxValue (Inherited from SetupJVMWrapper) Obsolete | |
| EnableDebug |
Enables Debug
(Inherited from SetupJVMWrapper) | |
| EnableNativeAccess | to enable native access as defined in https://openjdk.org/jeps/472, default value is for compatibility with JDK 11.
(Inherited from SetupJVMWrapper) | |
| FeatureLevel |
Reports the feature level of the JVM in use
(Inherited from SetupJVMWrapper) Obsolete | |
| GlobalHeapSize |
Sets the global heap size
(Inherited from SetupJVMWrapper) | |
| GlobalInstance | Create and return a singleton global instance of T | |
| Globalize |
Set to to avoid globalization of the instance. Default is (Inherited from SetupJVMWrapper) | |
| HasGlobalInstance | Return if a singleton global instance of T was previously created, otherwise | |
| InitialHeapSize |
Sets the initial heap size
(Inherited from SetupJVMWrapper) | |
| JavaDebugOpts |
Java Debug options used if EnableDebug is true
(Inherited from SetupJVMWrapper) | |
| JavaDebugPort |
Java Debug Port
(Inherited from SetupJVMWrapper) | |
| JDKHome |
The path where is located the JRE of the installed JDK
(Inherited from SetupJVMWrapper) | |
| JmxPort |
The JMX Port to use
(Inherited from SetupJVMWrapper) | |
| JNIOutputFile |
The path where the JNI verbose info will be written. The file will be opened in append mode.
(Inherited from SetupJVMWrapper) | |
| JNIVerbosity |
Sets the verbosity of the JNI interface. See oracle documentation.
(Inherited from SetupJVMWrapper) | |
| JVM |
The entry point for direct JVM operations. Use DynJVM to write code like you made in Java
(Inherited from SetupJVMWrapper) | |
| JVMOptions |
The options to pass to the JVM when a JVM will be created
(Inherited from SetupJVMWrapper) | |
| JVMPackages |
The list of packages on startup. Further packages can be added later
(Inherited from SetupJVMWrapper) | |
| JVMPath |
The path to the JRE ennvironment or full path to (jvm.dll/libjvm.so). If not set the library try to find a suitable version on the system.
(Inherited from SetupJVMWrapper) | |
| JVMStats |
The entry point for JVM statistics
(Inherited from SetupJVMWrapper) | |
| LicensePath |
The path where is located the license file
(Inherited from SetupJVMWrapper) | |
| Management |
The entry point for management operations
(Inherited from SetupJVMWrapper) | |
| ModulePath |
The starting JVM module path. Further path can be added later.
(Inherited from SetupJVMWrapper) | |
| RemoteBridge |
Direct accessor to the JCOBridge class in the JVM context
(Inherited from SetupJVMWrapper) | |
| RemoteJCOBridge |
Dynamic accessor to the JCOBridge class in the JVM context
(Inherited from SetupJVMWrapper) | |
| SuppressFinalize | to suppress finalization of the class instance inherited from SetupJVMWrapper
when the instance is created using CreateGlobalInstance,
the instance is globalized using Globalize(IJVMBridgeCore, Boolean).
Default value is .
(Inherited from SetupJVMWrapper) |
| Name | Description | |
|---|---|---|
| CreateGlobalInstance | Create a singleton global instance of T | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Finalize an instance of SetupJVMWrapper (Inherited from SetupJVMWrapper) | |
| GetCLRGlobal |
Get previously registered Object from CLR global mapper
(Inherited from SetupJVMWrapper) Obsolete | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetJCGraphicContainer(IJavaObject, Boolean) |
Requests to allocate a remote graphic container to host the Component in graphicObject (Inherited from SetupJVMWrapper) Obsolete | |
| GetJCGraphicContainer(String, Boolean) |
Requests to allocate a remote graphic container to host the Component with class name className (Inherited from SetupJVMWrapper) Obsolete | |
| GetJVMGlobal |
Get previously registered IJavaObject from JVM global mapper
(Inherited from SetupJVMWrapper) Obsolete | |
| GetListener |
Returns the IJVMBridgeBase listener reference associated to the JVM reference
(Inherited from SetupJVMWrapper) Obsolete | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ImportPackage |
Imports a Java package to be used within the program
(Inherited from SetupJVMWrapper) Obsolete | |
| InitializeListener |
Request the initialization of the Listener from the JVM. The listener is a new class which inherits from JVMBridgeListener or JVMBridgeListener (Inherited from SetupJVMWrapper) Obsolete | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| PostInitialization |
Override the method to manage post initialization step
(Inherited from SetupJVMWrapper) | |
| PreInitialization |
Override the method to setup some information, this is the first method invoked: some settings can be applied here like SetEventOrExceptionHandler(EventHandlerEventOrExceptionEventArgs) (Inherited from SetupJVMWrapper) | |
| ProcessCommandLine |
Process command line arguments
(Inherited from SetupJVMWrapper) | |
| RegisterCLRGlobal |
Register the object into the global CLR mapper.
(Inherited from SetupJVMWrapper) Obsolete | |
| ReleaseJCGraphicContainer |
Reelase a IJCGraphicContainer from the JVM
(Inherited from SetupJVMWrapper) Obsolete | |
| ReleaseListener |
Release a IJVMBridgeBase listener reference from the JVM
(Inherited from SetupJVMWrapper) Obsolete | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| UnregisterCLRGlobal |
Unregister the object from the global CLR mapper.
(Inherited from SetupJVMWrapper) Obsolete | |
| UnwrapAndDemonizeOn | Creates and unwrap the JVM instance as daemon | |
| UnwrapOn | Creates and unwrap the JVM instance |
| Name | Description | |
|---|---|---|
| ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions) | |
| ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions) |
class JVMWrapperApp : SetupJVMWrapper<JVMWrapperApp< { public void UnwrappedExecute(object args) { // put here the code to execute in a different JVM thread } public void Execute() { // use the following to execute the thread in JVM as deamon // the function returns a reference to the instance of the class allocated in the new thread // var jvmwrapperRefFromNewThread = UnwrapAndDemonizeOn(UnwrappedExecute); // use the following to execute the thread in JVM // the function returns a reference to the instance of the class allocated in the new thread // var jvmwrapperRefFromNewThread = UnwrapOn(UnwrappedExecute); // ... continue here with normal code; it will execute in parallel with unwrapped code } }