JuggerNET Runtime Library v3.6.54.0
3.6.54.0
|
@ XMOG_AFTER_INITIALIZATION
Indicates that the JvmLoader instance has just been created and the application writer's code that co...
delegate void ConfigurationHook(IJvmLoader loader, int when)
A callback that will be invoked by the runtime library when the loader instance is being created....
long Attach()
Attaches the current thread to the JVM. This method is not exposed to COM to prevent overloading issu...
Definition: Jvm.cs:38
@ TraceThread
Trace all things related to the attachment or detachment of threads.
The proxy type for the Java type float[]
Definition: ProxyArrays.cs:652
string AgentLib
A property that corresponds with the Java5/6 -agentlib option.
Definition: IJvmOptions.cs:51
longArray()
Initializes a new instance of the longArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:962
string MainClass
Not yet used.
Definition: IRemoteOptions.cs:35
A class that helps dealing with automatically converted .NET objects. We don't want to leak JNI refer...
Definition: JavaProxyHelper.cs:19
override string ToString()
Implemented in terms of the Java toString() method.
Definition: JuggerNETProxyObject.cs:175
string Splash
A property that corresponds with the Java5/6 -splash option.
Definition: JvmLoader.cs:1206
JavaProxyMonitor(JavaProxy proxy)
Creates a Monitor instance for a Java object.
Definition: JavaProxyMonitor.cs:22
JuggerNETFrameworkException(SerializationInfo info, StreamingContext ctx)
Creates a framework exception instance from seialized data.
Definition: JuggerNETFrameworkException.cs:48
JuggerNETProxyObject(JNIHandle jobject)
Initializes a proxy object that corresponds with a preexisting Java object represented by the given o...
Definition: JuggerNETProxyObject.cs:87
object call_object(long inst, params jvalue[] param)
Definition: JavaMethod.cs:593
DashDOptionType DashDOption
The property that allows the specification of -D options.
Definition: JvmLoader.cs:1249
unsafe bool CallBool(JavaProxy jpo, int i)
Calls a Java method of signature (I)Z.
Definition: JavaMethod.cs:1105
override bool IsProxyError
A readonly property that is true if the exception is due to an error that occurred while executing Ja...
Definition: JuggerNETProxyException.cs:185
A structure used to increase the performance of method invocations. By not marshaling all JNI argumen...
Definition: NativeInterface.cs:504
JavaProxyLockHolder(JavaProxy proxy)
Creates the instance and attempts to enter a critical section on the passed in object.
Definition: JavaProxyMonitor.cs:79
string Type
Returns the last thrown exception's type.
Definition: ICOMErrorHelper.cs:47
@ TraceRemote
Trace all things related to remote Java (shared JVM) functionality.
A marshaller that uses reflection to get/set properties.
Definition: IPeerMarshaller.cs:236
@ TraceWarnings
Only trace warnings or severe errors for the facility. This is the default level for all trace facili...
unsafe bool CallBool(JavaProxy jpo, bool b)
Calls a Java method of signature (Z)Z.
Definition: JavaMethod.cs:975
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:1072
ConfigOptionAttribute()
Create an attribute with the default name.
Definition: ConfigOptionAttribute.cs:22
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:144
TraceCallback TraceMethod
Allows you to register a custom tracing method.
Definition: JvmLoader.cs:2511
long JObjectDuplicate
A property representing a duplicated JNI object handle.
Definition: JuggerNETProxyException.cs:229
unsafe void CallVoid(JavaProxy jpo, short val)
Calls a Java method of signature (S)V (a short setter).
Definition: JavaMethod.cs:854
bool InterpretedMode
Enables interpreted execution mode if set to true.
Definition: JvmLoader.cs:1936
static IJvmLoader GetJvmLoader()
Returns an already created JVM Loader instance or a newly created JVM loader that traces errors and a...
Definition: JvmLoader.cs:288
JavaProxy Marshal(object dotNetInstance)
Marshals a .NET instance into a Java object.
@ TraceNothing
Provided for completeness.
unsafe float CallFloat(JavaProxy jpo)
Calls a Java method of signature ()F (a float getter).
Definition: JavaMethod.cs:1375
static void RegisterConfigurationHook(ConfigurationHook hook)
Registers a configuration hook with the runtime library.
Definition: JvmLoader.cs:181
string SecurityPolicy
The name of a file which contains the security policy for the session.
Definition: JvmLoader.cs:1831
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:735
int MilliSecondsToForcedGC
Specifies the number of milliseconds between forced garbage collections to alleviate memory pressure ...
Definition: IOptions.cs:243
The default implementation for the IJvm interface. You are unlikely to ever have to use these methods...
Definition: Jvm.cs:18
TraceFacility
An enumeration of facilities that the runtime library can provide runtime information about....
Definition: IOptions.cs:17
IJvmLoader GetJvmLoader(TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that traces at the speci...
Definition: JvmLoader.cs:2839
ExitCallback Exit
The callback for JVM exit.
Definition: IJvmOptions.cs:161
void AppendToClassPath(string cproot)
Append a classpath root to the classpath. A classpath root is a directory or a jarfile or a zipfile.
Definition: JvmLoader.cs:1592
boolArray FromNative(bool[] arr)
A conversion method for the native array type to the proxy array type.
Definition: ProxyArrays.cs:86
int MaximumHeapSize
The maximum JVM heap size in MB. This property is synonymous to the MaximumHeapSizeInMB property.
Definition: IJvmOptions.cs:319
Definition: NativeInterface.cs:225
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:321
void Destroy()
Attempts to unload the JVM.
charArray(int size)
Initializes a new instance of the charArray class to refer to a newly created Java char[] of length s...
Definition: ProxyArrays.cs:384
long JObjectDuplicate
A property representing a duplicated JNI object handle.
Definition: JuggerNETProxyArray.cs:258
The proxy type for the Java type int[]
Definition: ProxyArrays.cs:781
static string MethodsAndFieldsAnalysis
Returns a string that contains helpful information about the methods and fields that are available in...
Definition: Diagnostics.cs:223
int MilliSecondsToForcedGC
Specifies the number of milliseconds between forced garbage collections to alleviate memory pressure ...
Definition: JvmLoader.cs:2566
bool Prof
Start the JVM with profiling support enabled if this property is true.
Definition: IJvmOptions.cs:602
string Authentication
Not yet used.
Definition: IRemoteOptions.cs:45
When
Constants that are used by the ConfigurationHook delegate during JVM configuration....
Definition: JvmLoader.cs:75
An interface granting access to extended error information.
Definition: ICOMErrorHelper.cs:22
A type representing a -X option.
Definition: DashDOption.cs:53
static JavaClass RegisterClass(string className, Type classType, Type cbType)
Returns the object that maintains the per-class information for an instantiable Java proxy type that ...
Definition: JavaClass.cs:154
@ TraceError
Only trace severe errors for the facility.
JuggerNETInitAttribute()
Creates a new attribute instance.
Definition: JuggerNETInitAttribute.cs:27
static int DEFAULT_STRING_BUFFER_SIZE
The default size for StringBuilder instances that are used for marshalling Java strings into ....
Definition: NativeInterface.cs:559
A factory class for JvmLoader instances to be used from COM.
Definition: JvmLoader.cs:2788
void Exit()
Releases a critical section held on an object.
Definition: JavaProxyMonitor.cs:41
void SetConfigFile(string configFile, string vers, string conf, string reserved)
Specifies the location of an XML or old-style JunC++ion file that will be used by the native runtime ...
Definition: JvmLoader.cs:2806
int NumObjectsToForcedGC
Specifies the number of prxoy objects that need to be instantiated before a forced garbage collection...
Definition: IOptions.cs:257
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:1201
The interface implemented by all peer marshallers/unmarshallers.
Definition: IPeerMarshaller.cs:15
byte[] ToNative(byteArray arrB)
A COM entry point for conversion to the native array type.
Definition: ProxyArrays.cs:292
static void SetConfigFile(string configFile, string vers, string conf, string reserved)
Specifies the location of an XML or old-style JunC++ion file that will be used by the native runtime ...
Definition: JvmLoader.cs:272
static int GetStringLength(HandleRef h, out int result, out IntPtr exc)
Returns the length of a Java string represented by the given handle.
string ClassPath
The application classpath configured for the JVM.
Definition: JvmLoader.cs:1566
Summary description for PeerMarshalContext.
Definition: PeerMarshalContext.cs:12
Verbosity
The verbosity level of the JVM.
Definition: IJvmOptions.cs:15
void Dispose()
Exits the monitor.
Definition: JavaProxyMonitor.cs:130
DashXOptionType DashXOption
The property that allows the specification of -X options.
Definition: IJvmOptions.cs:142
override string ToString()
Implemented in terms of the Java toString() method.
Definition: JuggerNETProxyArray.cs:230
string AppendBootClassPath
The JVMs append-to-bootclasspath setting.
Definition: IJvmOptions.cs:409
delegate void TraceCallback(int level, string msg)
The callback for tracing. You can register your own trace method with the framework as long as it has...
IJvm Load()
Attempts to load a JVM using the configured settings. This version of the Load() method accepts a pre...
Definition: JvmLoader.cs:1012
unsafe void CallVoid(JavaProxy jpo)
Calls a Java method of signature ()V.
Definition: JavaMethod.cs:670
JvmLoaderException(SerializationInfo info, StreamingContext ctx)
Creates an exception instance from seialized data.
Definition: JvmLoaderException.cs:58
static void release(object obj)
The method that allows a user to specify that an object is now eligible for finalization.
Definition: LifeCycleManager.cs:109
long FreeMemory
A property representing the free memory in the JVM.
Definition: IJvm.cs:96
string PeerMarshaller
Specifies the marshaller to be used.
Definition: JavaPeerAttribute.cs:67
bool Debug
Start the embedded JVM in debug mode, allowing an external debugger to attach to it.
Definition: JvmLoader.cs:2058
void AppendToBootClassPath(string cproot)
Append a classpath root to the configured bootclasspath. A classpath root is a directory or a jarfile...
Definition: JvmLoader.cs:1645
The proxy type for the Java type boolean[]
Definition: ProxyArrays.cs:19
bool MixedMode
Enables mixed execution mode if set to true.
Definition: IJvmOptions.cs:552
unsafe void CallVoid(JavaProxy jpo, double val)
Calls a Java method of signature (D)V (a double setter).
Definition: JavaMethod.cs:773
Provides access to Java synchronization primitives. Codemesh.JuggerNET.JavaProxyLockHolder
Definition: JavaProxyMonitor.cs:14
string ClassPathAnalysis
A property that can be used to analyze the classpath. The returned string contains useful cleartext f...
Definition: JvmLoader.cs:2683
unsafe bool CallBool(JavaProxy jpo, short s)
Calls a Java method of signature (S)Z.
Definition: JavaMethod.cs:1157
override bool IsProxyException
A readonly property that is true if the exception is due to an exception that occurred while executin...
Definition: JuggerNETFrameworkException.cs:67
string SecurityManager
The name of a Java class which acts as the security manager for the session.
Definition: JvmLoader.cs:1791
string AgentLib
A property that corresponds with the Java5/6 -agentlib option.
Definition: JvmLoader.cs:1160
Verbosity Verbose
The verbosity of the JVM.
Definition: JvmLoader.cs:1812
@ TraceDisabled
Disable a trace facility totally.
ExitCallback Exit
The callback for JVM exit.
Definition: JvmLoader.cs:1306
intArray(int size)
Initializes a new instance of the intArray class to refer to a newly created Java int[] of length siz...
Definition: ProxyArrays.cs:798
IJvmLoader GetJvmLoader(string vers, string conf, string reserved, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:2980
JavaProxy Marshal(object dotNetInstance, JavaProxy javaInstance)
Marshals a .NET instance into a Java object. The Java object may be passed as an optional argument ...
Definition: PeerManager.cs:372
bool IsInstanceOf(JavaClass clazz)
Returns true if the instance is type compatible with the given Java type.
Definition: JuggerNETProxyArray.cs:279
JavaProxy Marshal(object dotNetInstance, JavaProxy javaObject)
Marshals a .NET instance into a Java object. The Java object may be passed as an optional argument ...
Definition: IPeerMarshaller.cs:155
IJvmLoader GetJvmLoaderFullySpecified(bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:2904
An interface implemented by every type that is a proxy type for a Java type. It provides an abstracti...
Definition: JavaProxy.cs:45
floatArray(int size)
Initializes a new instance of the floatArray class to refer to a newly created Java float[] of length...
Definition: ProxyArrays.cs:669
object Unmarshal(JavaProxy javaInstance)
Unmarshals a Java instance into a .NET object.
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:153
unsafe bool CallBool(JavaProxy jpo, double d)
Calls a Java method of signature (D)Z.
Definition: JavaMethod.cs:1053
static void ClearCache()
A method used to clear out any cached values. We use this method in testing and to potentially allow ...
Definition: JavaClass.cs:621
IJvmLoader GetJvmLoader()
Returns an already created JVM Loader instance or a newly created JVM loader that traces errors and a...
Definition: JvmLoader.cs:2816
new Exception InnerException
Gets the Java Exception instance that caused the current exception.
Definition: JuggerNETProxyException.cs:269
abstract bool IsProxyError
A readonly property that is true if the exception is due to an error that occurred while executing Ja...
Definition: JuggerNETException.cs:77
string ExtensionDirectories
The extensions directory configured for the JVM.
Definition: IJvmOptions.cs:457
long JObject
A property representing the JNI object handle.
Definition: JavaProxy.cs:51
@ TraceJni
Trace all things related to JNI.
A class that is used to manage PeerMarshallers.
Definition: PeerManager.cs:15
string DefaultJvmPath
The JVM that would be selected by the runtime library to be used in in-process mode if no JvmPath is ...
Definition: JvmLoader.cs:2399
unsafe byte CallByte(JavaProxy jpo)
Calls a Java method of signature ()B (a byte getter).
Definition: JavaMethod.cs:1213
An attribute used to contain additional housekeeping information about the generated proxytype.
Definition: JuggerNETProxyTypeAttribute.cs:25
The framework type wrapping around a Java method.
Definition: JavaMethod.cs:25
long TotalMemory
A property representing the memory used by the JVM.
Definition: Jvm.cs:164
unsafe bool CallBool(JavaProxy jpo)
Calls a Java method of signature ()Z (a bool getter).
Definition: JavaMethod.cs:950
object Unmarshal(JavaProxy javaInstance)
Unmarshals a Java instance into a .NET object.
Definition: IPeerMarshaller.cs:217
JvmLoaderConfigurationException(string msg)
Creates an exception instance with a given message.
Definition: JvmLoaderConfigurationException.cs:39
bool ReduceSignals
Reduces usage of operating-system signals by Java virtual machine if set to true.
Definition: JvmLoader.cs:2111
override bool Equals(object obj)
Implemented in terms of the Java equals() method. If the other object is not also a subclass of a Jav...
Definition: JuggerNETProxyArray.cs:102
unsafe long CallLong(JavaProxy jpo)
Calls a Java method of signature ()J (a long getter).
Definition: JavaMethod.cs:1484
@ XMOG_BEFORE_LOADING
Indicates that JvmLoader.Load() is about to be called.
string PrependBootClassPath
The JVMs prepend-to-bootclasspath setting.
Definition: JvmLoader.cs:1695
doubleArray(int size)
Initializes a new instance of the doubleArray class to refer to a newly created Java double[] of leng...
Definition: ProxyArrays.cs:540
JavaProxy Marshal(object dotNetInstance, JavaProxy javaInstance, PeerMarshalContext ctx)
Marshals a .NET instance into a Java object. The Java object may be passed as an optional argument ...
Definition: PeerManager.cs:385
The interface implemented by all JVMs.
Definition: IJvm.cs:14
static IJvmLoader GetJvmLoader(string configFile, string vers, string conf, string reserved, bool bEnvOverrides, bool bDefaultJvm)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:504
void SetElement(int index, Type elemType, object elem)
The element mutator for arrays of reference types that might require dynamic peer creation.
Definition: JuggerNETProxyArray.cs:212
JvmLoaderConfigurationException(string msg, Exception exc)
Creates an exception instance with a message and a root cause.
Definition: JvmLoaderConfigurationException.cs:49
void SetTraceLevel(TraceFacility fac, TraceLevel level)
Set the trace level for a trace facility.
IJvmLoader GetJvmLoader(string configFile, string vers, string conf, string reserved, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:2959
object Unmarshal(JavaProxy javaInstance)
Unmarshals a Java instance into a .NET object.
Definition: IPeerMarshaller.cs:170
string JvmPath
The JVM that is to be used in in-process mode. This is the full path to a file which is usually calle...
Definition: IOptions.cs:131
IJvm JvmIfCreated
A property giving access to an already created Jvm without creating one. This property allows you to ...
Definition: IJvmLoader.cs:127
Definition: COMErrorHelper.cs:10
static JavaClass RegisterClass(string className, Type classType)
Returns the object that maintains the per-class information for a Java proxy type.
Definition: JavaClass.cs:112
void Enter()
Attempts to enter a critical section held on an object.
Definition: JavaProxyMonitor.cs:33
string JvmPath
The JVM that is to be used in in-process mode. This is the full path to a file which is usually calle...
Definition: JvmLoader.cs:2372
The proxy type for the Java type char[]
Definition: ProxyArrays.cs:367
bool Future
Performs strict class-file format checks if set to true.
Definition: JvmLoader.cs:2160
IJvmLoader GetDefaultJvmLoader()
Returns an already created JVM Loader instance or a newly created JVM loader that traces errors and a...
Definition: JvmLoader.cs:2826
JvmLoaderConfigurationException()
Creates a new exception instance.
Definition: JvmLoaderConfigurationException.cs:30
DashDOptionType DashDOption
The property that allows the specification of -D options.
Definition: IJvmOptions.cs:122
delegate int VfprintfCallback(string msg)
The callback for redirecting all VM messages.
static jvalue ToJavaException(System.Exception e)
Returns a jvalue containing a Java exception instance, suitable for throwing into the JVM....
Definition: JuggerNETException.cs:91
string LibraryPath
The application librarypath configured for the JVM.
Definition: JvmLoader.cs:1718
static IJvmLoader GetJvmLoader(bool bEnvOverrides, bool bDefaultJvm)
Returns an already created JVM Loader instance or a newly created JVM loader that traces errors and a...
Definition: JvmLoader.cs:314
unsafe double CallDouble(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of double.
Definition: JavaMethod.cs:1345
static string ClassesAnalysis
Returns a string that contains helpful information about the classes that are available as proxy clas...
Definition: Diagnostics.cs:198
@ TraceVerbose
Trace all messages for the facility.
IJvmLoader GetJvmLoader(bool bEnvOverrides, bool bDefaultJvm)
Returns an already created JVM Loader instance or a newly created JVM loader that traces errors and a...
Definition: JvmLoader.cs:2864
object Unmarshal(JavaProxy javaInstance)
Unmarshals a Java instance into a .NET object.
Definition: PeerManager.cs:409
unsafe void CallVoid(JavaProxy jpo, long val)
Calls a Java method of signature (J)V (a long setter).
Definition: JavaMethod.cs:833
bool EnableVerboseGC
Enables verbose garbage collection if set to true.
Definition: JvmLoader.cs:1895
string ExtensionDirectories
The extensions directory configured for the JVM.
Definition: JvmLoader.cs:1759
string SkipTypeAnalysisForTheseAssemblies
Specifies semicolon-separated list of assembly name fragments that refer to assemblies that should be...
Definition: IOptions.cs:278
string? SkipTypeAnalysisForTheseAssemblies
Definition: JvmLoader.cs:2261
unsafe string CallString(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of string.
Definition: JavaMethod.cs:1702
JvmLoaderException(string msg, Exception exc)
Creates an exception instance with a message and a root cause.
Definition: JvmLoaderException.cs:48
bool COMExceptionMessages
A property governing whether exception type, message, and stack trace are all bundled up in one XML m...
Definition: IJvmOptions.cs:101
bool InterpretedMode
Enables interpreted execution mode if set to true.
Definition: IJvmOptions.cs:568
virtual IEnumerator GetEnumerator()
Provides the default implementation for reference type arrays. Primitive arrays override this method.
Definition: JuggerNETProxyArray.cs:377
bool COMExceptionMessages
A property governing whether exception type, message, and stack trace are all bundled up in one XML m...
Definition: JvmLoader.cs:1222
abstract bool IsProxyException
A readonly property that is true if the exception is due to an exception that occurred while executin...
Definition: JuggerNETException.cs:68
bool Future
Performs strict class-file format checks if set to true.
Definition: IJvmOptions.cs:722
unsafe void CallVoid(JavaProxy jpo, bool val)
Calls a Java method of signature (Z)V (a boolean setter).
Definition: JavaMethod.cs:713
unsafe void CallVoid(JavaProxy jpo, byte val)
Calls a Java method of signature (B)V (a byte setter).
Definition: JavaMethod.cs:733
void UnloadCleanup(IJvm jvm)
Performs cleanup behind a recently destroyed JVM.
string AgentPath
A property that corresponds with the Java5/6 -agentpath option.
Definition: JvmLoader.cs:1180
floatArray()
Initializes a new instance of the floatArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:660
void PrependToLibraryPath(string libpathroot)
Prepend a directory to the librarypath.
IJvm Load(bool bAcceptPreloaded)
Attempts to load a JVM using the configured settings or optionally uses an already loaded JVM....
Definition: JvmLoader.cs:1025
delegate int GenericCallback(out int result_type, out jvalue result, IntPtr param)
The callback used for Java classes that have to call into .NET within the context of a ....
JavaProxy Marshal(object dotNetInstance, JavaProxy javaInstance, PeerMarshalContext ctx)
Marshals a .NET instance into a Java object. The Java object may be passed as an optional argument ...
Definition: IPeerMarshaller.cs:203
The baseclass for all exceptions occuring in the JuggerNET framework, posibly due to a misconfigurati...
Definition: JuggerNETFrameworkException.cs:17
bool DisableClassGC
Disables class garbage collection if set to true.
Definition: JvmLoader.cs:1856
ExceptionHandlerCallback ExceptionHandler
Specifies the callback that you can use to customize the type of exception that is thrown by the Jugg...
Definition: IOptions.cs:316
bool CheckJni
Performs additional validation on JNI calls if set to true.
Definition: JvmLoader.cs:2132
@ TraceErrors
Only trace severe errors for the facility.
string Run
Specifies particular runtime settings that are used to configure the debugging or profiling support.
Definition: IJvmOptions.cs:617
static IJvmLoader GetJvmLoader(string vers, string conf, string reserved, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:525
JvmLoaderException(string msg)
Creates an exception instance with a given message.
Definition: JvmLoaderException.cs:38
unsafe short CallShort(JavaProxy jpo)
Calls a Java method of signature ()S (a short getter).
Definition: JavaMethod.cs:1538
static int CollectGarbage(out int dummy1, out jvalue dummy2, IntPtr dummy3)
A callback used to trigger .NET garbage collection from the Java side.
Definition: NativeInterface.cs:587
An attribute used to signal that a property is a configuration setting.
Definition: ConfigOptionAttribute.cs:15
string ClassesAnalysis
A property that can be used to analyze the proxy classes. The returned string contains useful clearte...
Definition: JvmLoader.cs:2759
The interface for explicitly configuring or loading a JVM.
Definition: IJvmLoader.cs:66
IJvm JvmIfCreated
A property giving access to an already created Jvm without creating one. This property allows you to ...
Definition: JvmLoader.cs:2992
static TraceSwitch TypeSystemTracing
A read-only property governing the tracing of proxy-type events.
Definition: Diagnostics.cs:140
unsafe IntPtr CallObject(JavaProxy jpo)
Calls a Java method of signature ()Lxxx; (a reference type getter).
Definition: JavaMethod.cs:1592
Jvm(long pInstance)
Initializes a new instance represnting an already loaded JVM.
Definition: Jvm.cs:28
A value type used as an argument in framework constructors. We need to be able to create instances of...
Definition: JavaProxy.cs:19
string Name
The name of the configuration option.
Definition: ConfigOptionAttribute.cs:48
void AppendToLibraryPath(string libpathroot)
Append a directory to the library search path.
The baseclass for all non-exception types that are proxy types for Java types.
Definition: JuggerNETProxyObject.cs:49
int StackSizeInKB
The stack size in KB used for the Java stack. This property is synonymous to the StackSize property.
Definition: JvmLoader.cs:1427
bool[] ToNative(boolArray arrB)
A COM entry point for conversion to the native array type.
Definition: ProxyArrays.cs:123
shortArray()
Initializes a new instance of the shortArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:1135
unsafe bool CallBool(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of bool.
Definition: JavaMethod.cs:1183
int InitialHeapSizeInMB
The initial JVM heap size in MB. This property is synonymous to the InitialHeapSize property.
Definition: IJvmOptions.cs:268
string TraceFile
A file into which trace messages are written. If not specified, all tracing output is going to stdout...
Definition: JvmLoader.cs:2470
bool CheckJni
Performs additional validation on JNI calls if set to true.
Definition: IJvmOptions.cs:700
static IJvmLoader GetJvmLoader(string configFile, string vers, string conf, string reserved, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:450
long MaxMemory
A property representing the maximally available memory for the JVM.
Definition: IJvm.cs:104
DashXOptionType DashXOption
The property that allows the specification of -X options.
Definition: JvmLoader.cs:1272
unsafe IntPtr CallObject(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of a reference type.
Definition: JavaMethod.cs:1668
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:1081
string Message
Returns the last thrown exceptions's message.
Definition: ICOMErrorHelper.cs:29
The framework type wrapping around a Java field.
Definition: JavaField.cs:17
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:726
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:302
IJvmLoader GetJvmLoader(bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:2890
TraceLevel GetTraceLevel(TraceFacility fac)
Query the trace level for a trace facility.
Definition: JvmLoader.cs:2447
Definition: COMErrorHelper.cs:10
string TraceFile
A file into which trace messages are written. If not specified, all tracing output is going to stdout...
Definition: IOptions.cs:194
unsafe bool CallBool(JavaProxy jpo, byte b)
Calls a Java method of signature (B)Z.
Definition: JavaMethod.cs:1001
AbortCallback Abort
The callback for JVM abortion.
Definition: JvmLoader.cs:1284
unsafe char CallChar(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of char.
Definition: JavaMethod.cs:1291
boolArray(int size)
Initializes a new instance of the boolArray class to refer to a newly created Java boolean[] of lengt...
Definition: ProxyArrays.cs:36
ConfigOptionAttribute(string optionName)
Create an attribute with a custom option name.
Definition: ConfigOptionAttribute.cs:30
bool JniFallback
Attempts to fall back to JNI in-proces mode if no connection with a shared JVM can be established if ...
Definition: IRemoteOptions.cs:25
void Detach(long env)
Detaches the current thread from the JVM. This method is not exposed to COM to prevent overloading is...
Definition: Jvm.cs:117
An implementation of an IEnumerator that works with a Java Iterator or a Java Enumeration as a back...
Definition: ProxyEnumerator.cs:99
int InitialHeapSizeInMB
The initial JVM heap size in MB. This property is synonymous to the InitialHeapSize property.
Definition: JvmLoader.cs:1473
void SetTraceLevel(TraceFacility fac, TraceLevel level)
Set the trace level for a trace facility.
Definition: JvmLoader.cs:2437
string StackTrace
The stack trace of the last Java Exception or Error that was thrown on the current thread.
Definition: COMErrorHelper.cs:88
static void SetConfigFile(string configFile)
Specifies the location of an XML file that will be used by the native runtime library to read configu...
Definition: JvmLoader.cs:255
JavaProxy Marshal(object dotNetInstance)
Marshals a .NET instance into a Java object.
Definition: PeerManager.cs:360
static TraceSwitch FinalizationTracing
A read-only property governing the tracing of object finalization.
Definition: Diagnostics.cs:148
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:745
object Unmarshal(JavaProxy javaInstance, object dotNetInstance)
Unmarshals a Java instance into a .NET object. The .NET object may be passed as an optional argument ...
Definition: PeerManager.cs:421
int Length
The number of elements that the array can hold.
Definition: JuggerNETProxyArray.cs:323
void SetTraceFile(string name, int numFilesToRetain)
Sets both the trace file name and the number of old files to retain in one operation.
bool UseCodemeshSecurityManager
Governs whether a Codemesh SecurityManager is registered instead of the configured one....
Definition: IJvmOptions.cs:206
byteArray(int size)
Initializes a new instance of the byteArray class to refer to a newly created Java byte[] of length s...
Definition: ProxyArrays.cs:225
static string ClassPathAnalysis
Returns a string that contains helpful information about the configured classpath....
Definition: Diagnostics.cs:175
bool DisableClassGC
Disables class garbage collection if set to true.
Definition: IJvmOptions.cs:512
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:1210
long JObjectDuplicate
A property representing a duplicated JNI object handle.
Definition: JavaProxy.cs:68
int NumObjectsToForcedGC
Specifies the number of prxoy objects that need to be instantiated before a forced garbage collection...
Definition: JvmLoader.cs:2544
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:908
int InitialHeapSize
The initial JVM heap size in MB. This property is synonymous to the InitialHeapSizeInMB property.
Definition: JvmLoader.cs:1496
void AppendToModulePath(string cproot)
Append a modulepath root to the modulepath. A modulepath root is usually a directory or a jarfile or ...
Definition: JvmLoader.cs:2212
static IJvmLoader JvmLoaderIfCreated
A property giving access to an already created JvmLoader without creating one. This property allows y...
Definition: JvmLoader.cs:572
@ XMOG_BEFORE_INITIALIZATION
Currently unused.
long JObjectDuplicate
A property representing a duplicated JNI object handle.
Definition: JuggerNETProxyObject.cs:204
delegate void AbortCallback()
The callback for VM abortion.
An interface encapsulating the remote (shared JVM) options of JuggerNET.
Definition: IRemoteOptions.cs:14
IJvmLoader GetJvmLoaderWithTracing(TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that traces at the speci...
Definition: JvmLoader.cs:2852
int StackSizeInKB
The stack size in KB used for the Java stack. This property is synonymous to the StackSize property.
Definition: IJvmOptions.cs:234
long Ptr
A property representing the loaded JVM.
Definition: Jvm.cs:140
COMErrorHelper()
The default constructor.
Definition: COMErrorHelper.cs:42
bool IsReadOnly
Always false.
Definition: JuggerNETProxyArray.cs:307
void PrependToClassPath(string cproot)
Prepend a classpath root to the classpath. A classpath root is a directory or a jarfile or a zipfile.
Definition: JvmLoader.cs:1607
void Read(string file, string vers, string conf, string reserved0)
Explicitly updates the instance with configuration information from the specified source.
Definition: JvmLoader.cs:223
string DefaultJvmPath
The JVM that would be selected by the runtime library to be used in in-process mode if no JvmPath is ...
Definition: IOptions.cs:147
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:606
void PrependToLibraryPath(string libpathroot)
Prepend a directory to the librarypath.
Definition: JvmLoader.cs:1749
object SyncRoot
The synchronization object for the array (the array itself).
Definition: JuggerNETProxyArray.cs:360
unsafe int CallInt(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of int.
Definition: JavaMethod.cs:1453
TraceCallback TraceMethod
Allows you to register a custom tracing method.
Definition: IOptions.cs:216
The proxy type for the Java type double[]
Definition: ProxyArrays.cs:523
unsafe bool CallBool(JavaProxy jpo, long l)
Calls a Java method of signature (J)Z.
Definition: JavaMethod.cs:1131
An interface defining the framework options for JuggerNET.
Definition: IOptions.cs:121
byteArray()
Initializes a new instance of the byteArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:216
unsafe string CallString(JavaProxy jpo)
Calls a Java method of signature ()Ljava/lang/String;.
Definition: JavaMethod.cs:1644
This class provides facilities for the debugging of Java/.NET interoperability issues....
Definition: Diagnostics.cs:35
unsafe short CallShort(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of short.
Definition: JavaMethod.cs:1562
string Run
Specifies particular runtime settings that are used to configure the debugging or profiling support.
Definition: JvmLoader.cs:2020
unsafe byte CallByte(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of byte.
Definition: JavaMethod.cs:1237
void PrependToModulePath(string cproot)
Prepend a modulepath root to the modulepath. A modulepath root is usually a directory or a jarfile or...
Definition: JvmLoader.cs:2228
unsafe bool CallBool(JavaProxy jpo, char c)
Calls a Java method of signature (C)Z.
Definition: JavaMethod.cs:1027
unsafe char CallChar(JavaProxy jpo)
Calls a Java method of signature ()C (a char getter).
Definition: JavaMethod.cs:1267
static TraceSwitch CallbackTracing
A read-only property governing the tracing of callback events.
Definition: Diagnostics.cs:156
unsafe long CallLong(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of long.
Definition: JavaMethod.cs:1508
IJvm JvmIfCreated
A property giving access to an already created Jvm without creating one. This property allows you to ...
Definition: JvmLoader.cs:584
void Exit()
Releases the critical section that is held on the object. You don't have to call this method explicit...
Definition: JavaProxyMonitor.cs:116
intArray()
Initializes a new instance of the intlArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:789
void Release()
Forgets the reference to the corresponding Java object. Unless caller explicitly cleans up Java refer...
Definition: JuggerNETProxyObject.cs:123
A baseclass that provides default implementations for the delegating versions of Marshal() and Unmars...
Definition: IPeerMarshaller.cs:65
bool NoshutdownProcessing
Governs whether the application should attempt to perform cleanup in the JVM when shutting down....
Definition: IOptions.cs:161
string LibraryPath
The application librarypath configured for the JVM.
Definition: IJvmOptions.cs:433
@ XMOG_AFTER_LOADING
Indicates that JvmLoader.Load() has been called.
unsafe void CallVoid(JavaProxy jpo, char val)
Calls a Java method of signature (C)V (a char setter).
Definition: JavaMethod.cs:753
long FreeMemory
A property representing the free memory in the JVM.
Definition: Jvm.cs:148
override bool Equals(object obj)
Implemented in terms of the Java equals() method. If the other object is not also a subclass of a Jav...
Definition: JuggerNETProxyObject.cs:141
void Detach()
Detaches the current thread from the JVM.
Definition: Jvm.cs:107
string Connection
Specifies the connection settings for a shared JVM.
Definition: IRemoteOptions.cs:65
doubleArray()
Initializes a new instance of the doubleArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:531
char[] ToNative(charArray arrC)
A COM entry point for conversion to the native array type.
Definition: ProxyArrays.cs:448
void AppendToExtensionDirectories(string extdir)
Appends a directory to the configured extensions directories.
bool EnableClassGC
Enables class garbage collection if set to true.
Definition: IJvmOptions.cs:526
int JNILevel
The JNI Version number to be used for initialization of the JVM. This is synonymous to the JniVersion...
Definition: JvmLoader.cs:1368
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:458
override object Unmarshal(JavaProxy javaInstance, object dotNetInstance)
Unmarshals a Java instance into a .NET object. The .NET object may be passed as an optional argument ...
Definition: IPeerMarshaller.cs:528
abstract bool IsFrameworkException
A readonly property that is true if the exception is due to an error in the JuggerNET framework,...
Definition: JuggerNETException.cs:59
unsafe int CallInt(JavaProxy jpo)
Calls a Java method of signature ()I (an int getter).
Definition: JavaMethod.cs:1429
string PerformTypeAnalysisForTheseAssemblies
Specifies semicolon-separated list of assembly name fragments that refer to assemblies that are the o...
Definition: IOptions.cs:306
longArray(int size)
Initializes a new instance of the longArray class to refer to a newly created Java long[] of length s...
Definition: ProxyArrays.cs:971
long Attach()
Attaches the current thread to the JVM. This method is not exposed to COM to prevent overloading issu...
JvmLoaderException()
Creates a new exception instance.
Definition: JvmLoaderException.cs:30
override bool IsProxyException
A readonly property that is true if the exception is due to an exception that occurred while executin...
Definition: JuggerNETProxyException.cs:200
void Set(int index, bool b)
Sets the value of one array element.
Definition: ProxyArrays.cs:172
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:616
Definition: ProxyEnumerator.cs:12
int StackSize
The stack size in KB used for the Java stack. This property is synonymous to the StackSizeInKB proper...
Definition: JvmLoader.cs:1450
void SetTraceFile(string name, int numFilesToRetain)
Sets both the trace file name and the number of old files to retain in one operation.
Definition: JvmLoader.cs:2457
void Read(string file)
Explicitly updates the instance with configuration information from the specified configuration file.
bool IgnoreUnrecognized
Governs whether an unrecognized configuration option causes an JVM initialization error.
Definition: JvmLoader.cs:1404
JuggerNETFrameworkException(string msg)
Creates a framework exception instance with a given message.
Definition: JuggerNETFrameworkException.cs:30
bool IsSame(JavaProxy proxy)
Returns true if the proxy instance wraps around the same Java object as the other proxy instance.
Definition: JuggerNETProxyArray.cs:290
abstract int Rank
The rank (number of dimensions) of the array.
Definition: JuggerNETProxyArray.cs:352
static IJvmLoader GetJvmLoader(bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:328
string MethodsAndFieldsAnalysis
A property that can be used to analyze the inner structure of proxy classes. The returned string cont...
Definition: JvmLoader.cs:2773
bool IsFixedSize
Always true.
Definition: JuggerNETProxyArray.cs:299
@ TraceUnconditional
Bypasses the applicability check.
static IJvmLoader GetJvmLoader(TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that traces at the speci...
Definition: JvmLoader.cs:302
The baseclass for all exceptions that are thrown when there is a problem in the JvmLoader.
Definition: JvmLoaderException.cs:25
int MaximumHeapSize
The maximum JVM heap size in MB. This property is synonymous to the MaximumHeapSizeInMB property.
Definition: JvmLoader.cs:1542
void Read(string vers, string conf, string reserved0)
Explicitly updates the instance with configuration information from the registry.
Definition: JvmLoader.cs:209
boolArray(JNIHandle jobject)
Initializes a new instance of the boolArray class to refer to a a preexisting Java boolean[] array re...
Definition: ProxyArrays.cs:45
JavaProxy Marshal(object dotNetInstance)
Marshals a .NET instance into a Java object.
Definition: IPeerMarshaller.cs:150
bool Debug
Start the embedded JVM in debug mode, allowing an external debugger to attach to it.
Definition: IJvmOptions.cs:644
string SecurityManager
The name of a Java class which acts as the security manager for the session.
Definition: IJvmOptions.cs:475
TraceLevel
An enumeration of levels at which the runtime library can provide runtime information about tracing f...
Definition: IOptions.cs:61
bool IsSynchronized
Always false.
Definition: JuggerNETProxyArray.cs:315
bool MixedMode
Enables mixed execution mode if set to true.
Definition: JvmLoader.cs:1914
Summary description for JavaPeerValue.
Definition: JavaPeerValue.cs:13
JavaProxy Marshal(object dotNetInstance, JavaProxy javaInstance)
Marshals a .NET instance into a Java object. The Java object may be passed as an optional argument ...
Definition: IPeerMarshaller.cs:190
bool UseCodemeshSecurityManager
Governs whether a Codemesh SecurityManager is registered instead of the configured one....
Definition: JvmLoader.cs:1387
IJvmLoader GetJvmLoaderWithBooleans(bool bEnvOverrides, bool bDefaultJvm)
Returns an already created JVM Loader instance or a newly created JVM loader that traces errors and a...
Definition: JvmLoader.cs:2876
override int GetHashCode()
Implemented in terms of the Java hashCode() method.
Definition: JuggerNETProxyObject.cs:166
string Name
When applied to fields or properties, this attribute can be used to specify a name mapping to a peer ...
Definition: JavaPeerAttribute.cs:48
DashXOptionType()
Create an instance of an object that allows the setting and querying of configured -X options.
Definition: DashDOption.cs:61
void AppendToClassPath(string cproot)
Append a classpath root to the classpath. A classpath root is a directory or a jarfile or a zipfile.
bool IsInstanceOf(JavaClass clazz)
Returns true if the instance is type compatible with the given Java type.
unsafe float CallFloat(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of float.
Definition: JavaMethod.cs:1399
bool Prof
Start the JVM with profiling support enabled if this property is true.
Definition: JvmLoader.cs:1999
A class that offers various methods useful for testing various ugly conditions.
Definition: TestSupport.cs:14
string ModulePath
The application modulepath configured for the JVM.
Definition: JvmLoader.cs:2185
A COM accessible type granting access to extended error information.
Definition: COMErrorHelper.cs:28
@ XMOG_BEFORE
An alias for XMOG_BEFORE_INITIALIZATION.
long Attach(JavaProxy threadGroup, string name, bool bAsDaemon)
Attaches the current thread to the JVM and adds it to the specified threadgroup with the specified th...
Definition: Jvm.cs:76
long Attach(long env)
Attaches an already created Java thread to the runtime. This method is not exposed to COM to prevent ...
Definition: Jvm.cs:99
void Release()
Releases the connection between this proxy instance and the Java object without freeing the Java obje...
The baseclass for all exceptions that are proxy types for exceptions or errors thrown by the Java Run...
Definition: JuggerNETProxyException.cs:26
unsafe void CallVoid(JavaProxy jpo, object val, Type type)
Calls a Java method of signature (Lxxx;)V (a reference type setter).
Definition: JavaMethod.cs:912
JuggerNETProxyObject()
Initializes a proxy object that corresponds with a Java null reference.
Definition: JuggerNETProxyObject.cs:61
IJvm Load()
Attempts to load a JVM using the configured settings.Codemesh.JuggerNET.IJvmLoader....
string DefaultPeerType
A property holding the name of the Java type that is used as a peer type when no peer type is specifi...
Definition: PeerManager.cs:54
JuggerNETProxyObject(string str)
Initializes a proxy object that corresponds with a Java java.lang.String instance of the specified va...
Definition: JuggerNETProxyObject.cs:71
@ TraceFinest
Trace all messages for the facility.
void Read(string file)
Explicitly updates the instance with configuration information from the specified configuration file.
Definition: JvmLoader.cs:195
string MethodsAndFieldsAnalysis
A property that can be used to analyze the inner structure of proxy classes. The returned string cont...
Definition: IJvmLoader.cs:172
IPeerMarshaller ResolveMarshallerFromAttribute(JavaPeerAttribute jpa)
The function used to resolve a marshaller for a type that declares its own JavaPeerAttribute.
Definition: PeerManager.cs:202
HandleRef Handle
A property representing the JNI object handle.
Definition: JavaProxy.cs:60
void AppendToLibraryPath(string libpathroot)
Append a directory to the library search path.
Definition: JvmLoader.cs:1739
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:134
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:1091
The proxy type for the Java type byte[]
Definition: ProxyArrays.cs:208
void Release()
Releases the connection between this proxy instance and the Java object without freeing the Java obje...
Definition: JuggerNETProxyArray.cs:84
JavaProxy Marshal(object dotNetInstance)
Marshals a .NET instance into a Java object.
Definition: IPeerMarshaller.cs:185
A structure used to increase the performance of field accesses. By not marshaling all JNI arguments b...
Definition: NativeInterface.cs:537
static TraceSwitch JvmTracing
A read-only property governing the tracing of JVM events.
Definition: Diagnostics.cs:164
charArray()
Initializes a new instance of the charArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:375
VfprintfCallback Vfprintf
The callback for JVM print statements.
Definition: JvmLoader.cs:1328
void PrependToClassPath(string cproot)
Prepend a classpath root to the classpath. A classpath root is a directory or a jarfile or a zipfile.
void SetElement(int index, object elem)
The element mutator for arrays of reference types.
Definition: JuggerNETProxyArray.cs:191
void Dispose()
Releases the corresponding Java object, thereby making it eligible for garbage collection if no other...
Definition: JuggerNETProxyArray.cs:78
An interface which defines the options that can be configured for a JVM.
Definition: IJvmOptions.cs:37
string DefaultPeerMarshaller
A property holding the name of a .NET type that implements the IPeerMarshaller interface and is used ...
Definition: PeerManager.cs:41
object Unmarshal(JavaProxy javaInstance, object dotNetInstance)
Unmarshals a Java instance into a .NET object. The .NET object may be passed as an optional argument ...
Definition: IPeerMarshaller.cs:222
int JniVersion
The JNI Version number to be used for initialization of the JVM. This is synonymous to the JNILevel p...
Definition: IJvmOptions.cs:182
void Detach()
Detaches the current thread from the JVM.
bool IsSame(JavaProxy proxy)
Returns true if the proxy instance wraps around the same Java object as the other proxy instance.
Definition: JuggerNETProxyObject.cs:236
override string ToString()
Implemented in terms of the Java toString() method.
Definition: JuggerNETProxyException.cs:444
unsafe double CallDouble(JavaProxy jpo)
Calls a Java method of signature ()D (a double getter).
Definition: JavaMethod.cs:1321
A utility class that deals with all interactions with the native side.
Definition: NativeInterface.cs:552
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:467
static IJvmLoader GetJvmLoader(string configFile, bool bEnvOverrides, bool bDefaultJvm)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:429
override bool Equals(object obj)
Implemented in terms of the Java equals() method. If the other object is not also a subclass of a Jav...
Definition: JuggerNETProxyException.cs:376
The baseclass for all array types that are proxy types for Java types.
Definition: JuggerNETProxyArray.cs:19
void Destroy()
Attempts to unload the JVM.
Definition: Jvm.cs:128
int JNILevel
The JNI Version number to be used for initialization of the JVM. This is synonymous to the JniVersion...
Definition: IJvmOptions.cs:193
A type representing a -D option.
Definition: DashDOption.cs:11
@ TraceInfo
Trace informative messages, warnings, and severe errors for the facility.
void PrependToBootClassPath(string cproot)
Prepend a classpath root to the configured bootclasspath. A classpath root is a directory or a jarfil...
override bool IsProxyError
A readonly property that is true if the exception is due to an error that occurred while executing Ja...
Definition: JuggerNETFrameworkException.cs:76
IJvmLoader GetJvmLoaderWithFile(string configFile, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:2938
string OptionName
The name of the configuration option.
Definition: ConfigOptionAttribute.cs:39
The proxy type for the Java type short[]
Definition: ProxyArrays.cs:1127
delegate System.Exception ExceptionHandlerCallback(System.Exception ex)
The callback for exception handling. You can register your own exception handler to override the kind...
bool IsInstanceOf(JavaClass clazz)
Returns true if the instance is type compatible with the given Java type.
Definition: JuggerNETProxyObject.cs:225
override JavaProxy Marshal(object dotNetInstance, JavaProxy javaInstance, PeerMarshalContext ctx)
Marshals a .NET instance into a Java object. The Java object may be passed as an optional argument ...
Definition: IPeerMarshaller.cs:507
override Exception GetBaseException()
Returns the Exception that is the root cause of one or more subsequent exceptions.
Definition: JuggerNETProxyException.cs:406
static JavaProxy keep(object obj, Type ifc)
The method that allows a user to request that an object be kept alive and not be finalized until at l...
Definition: LifeCycleManager.cs:67
string AppendBootClassPath
The JVMs append-to-bootclasspath setting.
Definition: JvmLoader.cs:1672
The baseclass for all exceptions related to JuggerNET. This includes two major subhierarchies,...
Definition: JuggerNETException.cs:18
override int GetHashCode()
Implemented in terms of the Java hashCode() method.
Definition: JuggerNETProxyException.cs:428
string Type
The Java type name of the last Java Exception or Error that was thrown on the current thread.
Definition: COMErrorHelper.cs:113
An attribute used to signal that a type should be treated as a peer type.
Definition: JavaPeerAttribute.cs:21
VfprintfCallback Vfprintf
The callback for JVM print statements.
Definition: IJvmOptions.cs:171
abstract Type ElementType
The .NET type of the array elements.
Definition: JuggerNETProxyArray.cs:368
void Release()
Releases the connection between this proxy instance and the Java object without freeing the Java obje...
Definition: JuggerNETProxyException.cs:118
The proxy type for the Java type long[]
Definition: ProxyArrays.cs:954
long MaxMemory
A property representing the maximally available memory for the JVM.
Definition: Jvm.cs:156
static IJvmLoader GetJvmLoader(string configFile, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:379
bool Remote
Specifies whether to use in-process or out-of-process runtime mode. If you use a value of true here,...
Definition: IOptions.cs:230
Definition: JuggerNETProxyArray.cs:382
override bool IsFrameworkException
A readonly property that is true if the exception is due to an error in the JuggerNET framework,...
Definition: JuggerNETProxyException.cs:176
string JavaAgent
A property that corresponds with the Java5/6 -agentpath option.
Definition: JvmLoader.cs:1193
JvmLoaderConfigurationException(SerializationInfo info, StreamingContext ctx)
Creates an exception instance from seialized data.
Definition: JvmLoaderConfigurationException.cs:59
unsafe void CallVoid(JavaProxy jpo, int val)
Calls a Java method of signature (I)V (an int setter).
Definition: JavaMethod.cs:813
void Dispose()
Releases the reference to the corresponding Java object, thereby making it eligible for garbage colle...
Definition: JuggerNETProxyObject.cs:112
An attribute used to signal that a type should be resolved when it is encountered in an assembly that...
Definition: JuggerNETInitAttribute.cs:22
int MaximumHeapSizeInMB
The maximum JVM heap size in MB. This property is synonymous to the MaximumHeapSize property.
Definition: IJvmOptions.cs:302
long Ptr
A property representing the loaded JVM.
Definition: IJvm.cs:88
string ClassPath
The application classpath configured for the JVM.
Definition: IJvmOptions.cs:337
unsafe void CallVoid(JavaProxy jpo, object val)
Calls a Java method of signature (Lxxx;)V (a reference type setter).
Definition: JavaMethod.cs:874
int JniVersion
The JNI Version number to be used for initialization of the JVM. This is synonymous to the JNILevel p...
Definition: JvmLoader.cs:1351
override int GetHashCode()
Implemented in terms of the Java hashCode() method.
Definition: JuggerNETProxyArray.cs:124
bool NoAgent
The Sun classic VM supports both the old sun.tools.debug interface and JPDA, the option "-Xdebug" ena...
Definition: JvmLoader.cs:2077
void UnloadCleanup(IJvm jvm)
An internally used method that removes the reference to the loaded Jvm. This does not actually unload...
Definition: JvmLoader.cs:1084
JuggerNETFrameworkException(string msg, Exception exc)
Creates a framework exception instance with a message and a root cause.
Definition: JuggerNETFrameworkException.cs:39
int TraceFileCount
The number of old trace files to retain.
Definition: JvmLoader.cs:2492
Verbosity Verbose
The verbosity of the JVM.
Definition: IJvmOptions.cs:485
@ TraceAll
A bitwise ORed value of all other facilities. TraceFacility.TraceEverything
@ XMOG_AFTER
An alias for XMOG_AFTER_INITIALIZATION.
string JavaAgent
A property that corresponds with the Java5/6 -agentpath option.
Definition: IJvmOptions.cs:78
bool NoAgent
The Sun classic VM supports both the old sun.tools.debug interface and JPDA, the option "-Xdebug" ena...
Definition: IJvmOptions.cs:657
string Message
The exception message of the last Java Exception or Error that was thrown on the current thread.
Definition: COMErrorHelper.cs:63
JuggerNETException(SerializationInfo info, StreamingContext ctx)
Creates an exception from serialized data.
Definition: JuggerNETException.cs:49
delegate void ExitCallback(int code)
The callback for VM exit.
string BootClassPath
The JVMs bootclasspath.
Definition: JvmLoader.cs:1619
void PrependToBootClassPath(string cproot)
Prepend a classpath root to the configured bootclasspath. A classpath root is a directory or a jarfil...
Definition: JvmLoader.cs:1660
string AgentPath
A property that corresponds with the Java5/6 -agentpath option.
Definition: IJvmOptions.cs:68
void AppendToBootClassPath(string cproot)
Append a classpath root to the configured bootclasspath. A classpath root is a directory or a jarfile...
@ TraceJvm
Trace all things related to the JVM (configuration, loading, etc.).
long Attach(JavaProxy threadGroup, string name)
Attaches the current thread to the JVM and adds it to the specified threadgroup with the specified th...
Definition: Jvm.cs:62
int StackSize
The stack size in KB used for the Java stack. This property is synonymous to the StackSizeInKB proper...
Definition: IJvmOptions.cs:251
bool ReduceSignals
Reduces usage of operating-system signals by Java virtual machine if set to true.
Definition: IJvmOptions.cs:685
JNIHandle GetElement(int index)
The element accessor for arrays of reference types that are leafs in the proxy type system....
Definition: JuggerNETProxyArray.cs:168
string? PerformTypeAnalysisForTheseAssemblies
Definition: JvmLoader.cs:2314
unsafe bool CallBool(JavaProxy jpo, float f)
Calls a Java method of signature (F)Z.
Definition: JavaMethod.cs:1079
<exclude>
Definition: IPeerMarshaller.cs:181
string PeerType
Specifies the peer type. Can be used to override the marshalling of a reference type.
Definition: JavaPeerAttribute.cs:58
long JObject
A property giving access to the JNI object handle that represents the wrapped Java instance.
Definition: JuggerNETProxyArray.cs:244
The LifeCycleManager class allows a user to manage the lifecycle of .NET and related instances better...
Definition: LifeCycleManager.cs:22
static Object GetTypedInstance(Type proxytype, long inst)
Returns an object of a .NET type that is the most derived available .NET type for the given instance ...
Definition: JavaClass.cs:333
long Attach(JavaProxy threadGroup)
Attaches the current thread to the JVM and adds it to the specified threadgroup. This method is not e...
Definition: Jvm.cs:49
ExceptionHandlerCallback ExceptionHandler
Definition: JvmLoader.cs:2253
Provides access to Java synchronization primitives. By declaring the instance in a using block,...
Definition: JavaProxyMonitor.cs:66
bool IsInstanceOf(JavaClass clazz)
Returns true if the instance is type compatible with the given Java type.
Definition: JuggerNETProxyException.cs:282
bool IgnoreUnrecognized
Governs whether an unrecognized configuration option causes an JVM initialization error.
Definition: IJvmOptions.cs:217
int TraceFileCount
The number of old trace files to retain.
Definition: IOptions.cs:205
The class that acts as a factory for JVM instances.
Definition: JvmLoader.cs:171
bool IsLeafType
A property indicating whether a proxytype has subtypes in the generated set of proxy types.
Definition: JuggerNETProxyTypeAttribute.cs:47
<exclude>
Definition: NativeInterface.cs:39
long TotalMemory
A property representing the memory used by the JVM.
Definition: IJvm.cs:112
static int Free_Instance(long obj)
Legacy entry point. Replaced by Free_Instance_Handle().
Definition: NativeInterface.cs:1008
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:1220
The base interface for the .NET version of Java peer types.
Definition: JavaPeer.cs:12
The class representing all exceptions that are thrown when there is a problem in the JvmLoader config...
Definition: JvmLoaderConfigurationException.cs:25
bool NoshutdownProcessing
Governs whether the application should attempt to perform cleanup in the JVM when shutting down....
Definition: JvmLoader.cs:2421
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:477
string BootClassPath
The JVMs bootclasspath.
Definition: IJvmOptions.cs:373
object GetElement(Type type, int index)
The element accessor for arrays of reference types.
Definition: JuggerNETProxyArray.cs:142
The framework type wrapping around a Java type.
Definition: JavaClass.cs:18
bool IsSame(JavaProxy proxy)
Returns true if the proxy instance wraps around the same Java object as the other proxy instance.
Definition: JuggerNETProxyException.cs:293
string ClassesAnalysis
A property that can be used to analyze the proxy classes. The returned string contains useful clearte...
Definition: IJvmLoader.cs:161
JuggerNETFrameworkException()
Creates a framework exception instance.
Definition: JuggerNETFrameworkException.cs:22
string SecurityPolicy
The name of a file which contains the security policy for the session.
Definition: IJvmOptions.cs:498
bool Ignore
When applied to fields or properties, this attribute can be used to skip the respective element from ...
Definition: JavaPeerAttribute.cs:37
DashDOptionType()
Create an instance of an object that allows the setting and querying of configured -D options.
Definition: DashDOption.cs:19
override bool IsFrameworkException
A readonly property that is true if the exception is due to an error in the JuggerNET framework,...
Definition: JuggerNETFrameworkException.cs:58
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:597
string Splash
A property that corresponds with the Java5/6 -splash option.
Definition: IJvmOptions.cs:88
void AppendToExtensionDirectories(string extdir)
Appends a directory to the configured extensions directories.
Definition: JvmLoader.cs:1779
unsafe void CallVoid(JavaProxy jpo, float val)
Calls a Java method of signature (F)V (a float setter).
Definition: JavaMethod.cs:793
bool EnableVerboseGC
Enables verbose garbage collection if set to true.
Definition: IJvmOptions.cs:539
bool IsSame(JavaProxy proxy)
Returns true if the proxy instance wraps around the same Java object as the other proxy instance.
JuggerNETProxyException(JNIHandle jobject, bool bIsException, bool bIsError)
The constructor that is used when we know the kind of Throwable that we're dealing with (Error or Exc...
Definition: JuggerNETProxyException.cs:130
bool Get(int index)
Returns the value of one array element.
Definition: ProxyArrays.cs:162
override IEnumerator GetEnumerator()
Returns an enumerator for the array elements.
Definition: ProxyArrays.cs:918
JuggerNETException()
The default constructor.
Definition: JuggerNETException.cs:23
@ TraceEverything
A bitwise ORed value of all other facilities. TraceFacility.TraceAll
IJvmLoader GetJvmLoader(string configFile, bool bEnvOverrides, bool bDefaultJvm, TraceFacility fac, TraceLevel level)
Returns an already created JVM Loader instance or a newly created JVM loader that uses the given sett...
Definition: JvmLoader.cs:2921
shortArray(int size)
Initializes a new instance of the shortArray class to refer to a newly created Java short[] of length...
Definition: ProxyArrays.cs:1144
string Encryption
Not yet used.
Definition: IRemoteOptions.cs:55
AbortCallback Abort
The callback for JVM abortion.
Definition: IJvmOptions.cs:151
TraceLevel GetTraceLevel(TraceFacility fac)
Query the trace level for a trace facility.
override int Rank
The array's rank; always 1.
Definition: ProxyArrays.cs:899
override Type ElementType
The .NET type of the array elements.
Definition: ProxyArrays.cs:311
boolArray()
Initializes a new instance of the boolArray class to refer to a Java null reference.
Definition: ProxyArrays.cs:27
JuggerNETException(string msg, Exception exc)
Creates an exception with a given message and root cause.
Definition: JuggerNETException.cs:40
string StackTrace
Returns the last thrown exception's stacktrace.
Definition: ICOMErrorHelper.cs:38
string PrependBootClassPath
The JVMs prepend-to-bootclasspath setting.
Definition: IJvmOptions.cs:421
bool EnableClassGC
Enables class garbage collection if set to true.
Definition: JvmLoader.cs:1876
long JObject
A property giving access to the JNI object handle that represents the wrapped Java instance.
Definition: JuggerNETProxyObject.cs:185
string ClassPathAnalysis
A property that can be used to analyze the classpath. The returned string contains useful cleartext f...
Definition: IJvmLoader.cs:142
JuggerNETException(string msg)
Creates an exception with a given message.
Definition: JuggerNETException.cs:31
int InitialHeapSize
The initial JVM heap size in MB. This property is synonymous to the InitialHeapSizeInMB property.
Definition: IJvmOptions.cs:285
int MaximumHeapSizeInMB
The maximum JVM heap size in MB. This property is synonymous to the MaximumHeapSize property.
Definition: JvmLoader.cs:1519
unsafe void CallVoid(JavaProxy jpo, JavaMethodArguments args)
Calls a Java method with a variable number of arguments and a return type of void.
Definition: JavaMethod.cs:688
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.