SetupJVMWrapper Class |
Namespace: MASES.JCOBridge.C2JBridge
The SetupJVMWrapper type exposes the following members.
Name | Description | |
---|---|---|
SetupJVMWrapper |
Initialize a new instance of SetupJVMWrapper | |
SetupJVMWrapper(String) |
Initialize a new instance of SetupJVMWrapper |
Name | Description | |
---|---|---|
ClassPath |
The starting JVM class path. Further path can be added later.
| |
DebugSuspendFlag |
Enables Debug
| |
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.
| |
EnableDebug |
Enables Debug
| |
FilteredArgs |
The remaining arguments after parsing of JCOBridge arguments. Useful when invoked application does not accept arguments related to JCOBridge.
| |
GlobalHeapSize |
Sets the global heap size
| |
InitialHeapSize |
Sets the initial heap size
| |
JavaDebugOpts |
Java Debug options used if EnableDebug is true
| |
JavaDebugPort |
Java Debug Port
| |
JDKHome |
The path where is located the JRE of the installed JDK
| |
JmxPort |
The JMX Port to use
| |
JNIOutputFile |
The path where the JNI verbose info will be written. The file will be opened in append mode.
| |
JNIVerbosity |
Sets the verbosity of the JNI interface. See oracle documentation.
| |
JVM |
The entry point for direct JVM operations. Use DynJVM to write code like you made in Java
| |
JVMOptions |
The options to pass to the JVM when a JVM will be created
| |
JVMPackages |
The list of packages on startup. Further packages can be added later
| |
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.
| |
JVMStats |
The entry point for JVM statistics
| |
LastBindingException |
Last Exception raised from C# to Java interface. Useful to identify the real exception behind a RuntimeBinderException raised when DynJVM accessor is in use.
| |
LicensePath |
The path where is located the license file
| |
Management |
The entry point for management operations
| |
RemoteBridge |
Direct accessor to the JCOBridge class in the JVM context
| |
RemoteJCOBridge |
Dynamic accessor to the JCOBridge class in the JVM context
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Finalize an instance of SetupJVMWrapper (Overrides ObjectFinalize.) | |
GetCLRGlobal |
Get previously registered Object from CLR global mapper
| |
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 | |
GetJCGraphicContainer(String, Boolean) |
Requests to allocate a remote graphic container to host the Component with class name className | |
GetJVMGlobal |
Get previously registered IJavaObject from JVM global mapper
| |
GetListener |
Returns the IJVMBridgeBase listener reference associated to the JVM reference
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ImportPackage |
Imports a Java package to be used within the program
| |
Initialize |
Call Initialize(String) | |
InitializeListener |
Request the initialization of the Listener from the JVM. The listener is a new class which inherits from CLRListener or JVMBridgeListener | |
InitializeRemote |
Call Initialize(String) on remote environment
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessCommandLine |
Process command line arguments
| |
RegisterCLRGlobal |
Register the object into the global CLR mapper.
| |
ReleaseJCGraphicContainer |
Reelase a IJCGraphicContainer from the JVM
| |
ReleaseListener |
Release a IJVMBridgeBase listener reference from the JVM
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnregisterCLRGlobal |
Unregister the object from the global CLR mapper.
| |
UnwrapAndDemonizeOnT |
Creates and unwrap the JVM instance as daemon
| |
UnwrapOnT |
Creates and unwrap the JVM instance
|
Name | Description | |
---|---|---|
ConvertTReturn |
Converts a generic object
(Defined by JCOBridgeExtensions.) | |
Globalize |
Creates a new global instance pointer
(Defined by JCOBridge.) | |
ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions.) |
class JVMWrapperApp : SetupJVMWrapper { public void Execute() { ImportPackage("java.lang"); ImportPackage("java.util"); var str = DynJVM.String.@new(); str = str.concat("HELLO WORLD FROM JVM!!!"); // this command is executed within the JVM context Console.WriteLine("Output from JVM: {0}", str); } }