Class JNetPSHelper<TClass>
- Namespace
- MASES.JNetPSCore
- Assembly
- MASES.JNetPSCore.dll
Public Helper class customized on TClass
public static class JNetPSHelper<TClass> where TClass : JNetCore<TClass>
Type Parameters
TClass
A class extendind JNetCore<T>
- Inheritance
-
JNetPSHelper<TClass>
- Inherited Members
Properties
InstanceCreated
true if a call to CreateGlobalInstance(Cmdlet) was done
public static bool InstanceCreated { get; }
Property Value
Methods
CreateGlobalInstance(Cmdlet)
Invokes MASES.JCOBridge.C2JBridge.SetupJVMWrapper<T>.CreateGlobalInstance() to start engine
public static void CreateGlobalInstance(Cmdlet cmdlet)
Parameters
cmdlet
Cmdlet
Remarks
All properties must be set prior to execute this command. Updates to the JVM environment cannot be done later.
Get<TProperty>(Type, string)
Generic static property getter
public static TProperty Get<TProperty>(Type target, string propertName)
Parameters
target
TypeThe target Type where the static property was defined
propertName
stringThe property name
Returns
- TProperty
The property
TProperty
value
Type Parameters
TProperty
Property type
Get<TTarget, TProperty>(string)
Generic static property getter
public static TProperty Get<TTarget, TProperty>(string propertName)
Parameters
propertName
stringThe property name
Returns
- TProperty
The property
TProperty
value
Type Parameters
TTarget
The target Type where the static property was defined
TProperty
Property type
Launch(Type, params string[])
Invokes JNetCore<TClass>.Launch(Type, string[]) to start a Main-Class
public static void Launch(Type type, params string[] args)
Parameters
New(string, params object[])
Creates a new class instance
public static object New(string className, params object[] args)
Parameters
Returns
- object
The newly created object
SetDebugSuspendFlag(string)
public static void SetDebugSuspendFlag(string debugSuspendFlag)
Parameters
debugSuspendFlag
string
SetEnableDebug(bool?)
public static void SetEnableDebug(bool? enableDebug)
Parameters
enableDebug
bool?
SetHeapSize(string)
Sets ApplicationHeapSize
public static void SetHeapSize(string heapSize)
Parameters
heapSize
string
SetInitialHeapSize(string)
public static void SetInitialHeapSize(string initialHeapSize)
Parameters
initialHeapSize
string
SetJDKHome(string)
Sets ApplicationJDKHome
public static void SetJDKHome(string jdkHome)
Parameters
jdkHome
string
SetJNIOutputFile(string)
public static void SetJNIOutputFile(string jniOutputFile)
Parameters
jniOutputFile
string
SetJNIVerbosity(string)
public static void SetJNIVerbosity(string jniVerbosity)
Parameters
jniVerbosity
string
SetJVMPath(string)
Sets ApplicationJVMPath
public static void SetJVMPath(string jvmPath)
Parameters
jvmPath
string
SetJavaDebugOpts(string)
public static void SetJavaDebugOpts(string javaDebugOpts)
Parameters
javaDebugOpts
string
SetJavaDebugPort(short?)
public static void SetJavaDebugPort(short? javaDebugPort)
Parameters
javaDebugPort
short?
SetJmxPort(short?)
Sets ApplicationJmxPort
public static void SetJmxPort(short? jmxPort)
Parameters
jmxPort
short?
SetLicensePath(string)
public static void SetLicensePath(string licensePath)
Parameters
licensePath
string
SetLogClassPath(bool?)
public static void SetLogClassPath(bool? logClassPath)
Parameters
logClassPath
bool?
Set<TProperty>(Type, string, TProperty)
Generic static property setter
public static void Set<TProperty>(Type target, string propertName, TProperty value)
Parameters
target
TypeThe target Type where the static property was defined
propertName
stringThe property name
value
TPropertyThe
TProperty
property value
Type Parameters
TProperty
Property type
Set<TTarget, TProperty>(string, TProperty)
Generic static property setter
public static void Set<TTarget, TProperty>(string propertName, TProperty value)
Parameters
propertName
stringThe property name
value
TPropertyThe
TProperty
property value
Type Parameters
TTarget
The target Type where the static property was defined
TProperty
Property type