JVMBridge |
The JVMBridgeListener type exposes the following members.
Name | Description | |
---|---|---|
JVMBridgeListener | Initialize a new instance of JVMBridgeListener |
Name | Description | |
---|---|---|
AutoInit | Set to false to externally initialize this JVMBridgeListener instance using InitializeListener(IJVMBridgeBase) | |
BridgeClassName |
Java class name to be instantiated
(Overrides JVMBridgeBase.BridgeClassName) | |
BridgeInstance |
The IJavaObject instance
(Inherited from JVMBridgeBase) | |
DynBridgeInstance |
The dynamic accessor to BridgeInstance (Inherited from JVMBridgeBase) | |
IsBridgeAbstract | true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
(Inherited from JVMBridgeBase) | |
IsBridgeCloseable | true if the BridgeClassName implements Closeable
(Overrides JVMBridgeBase.IsBridgeCloseable) | |
IsBridgeInterface | true if the BridgeClassName is an interface, i.e. does not have any public constructor
(Inherited from JVMBridgeBase) | |
IsBridgeListener | true if the BridgeClassName follows the listener pattern of JCOBridge: the BridgeClassName extends a JCListener or implements IJCListener
(Overrides JVMBridgeBase.IsBridgeListener) | |
IsBridgeStatic | true if the BridgeClassName is a static class, i.e. does not have any public constructor
(Overrides JVMBridgeBase.IsBridgeStatic) |
Name | Description | |
---|---|---|
AddEventHandler(String, EventHandler) | Adds an handler to manage events from JVM | |
AddEventHandler<TDataClass>(String, EventHandler<CLRListenerEventArgs<TDataClass>>) | Adds an handler to manage events from JVM | |
CastDirect<TNewClass> |
Simplified version of CastTo<TNewClass> () which wraps this instance with a new TNewClass class
(Inherited from JVMBridgeBase) | |
CastTo<TNewClass> |
Casts this IJVMBridgeBase object into TNewClass (Inherited from JVMBridgeBase) | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Overrides JVMBridgeBase.Dispose()) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from JVMBridgeBase) | |
Execute<T>(T[]) |
Executes the code
(Inherited from JVMBridgeBase) | |
Execute<T>(T[]) |
Executes the code
(Inherited from JVMBridgeBase<TClass>) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from JVMBridgeBase) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
IExecute(String, Object[]) |
Executes an instance method
(Inherited from JVMBridgeBase) | |
IExecuteArray<T> |
Execute the method and build the result as an array of T (Inherited from JVMBridgeBase) | |
IExecuteWithSignature(String, String, Object[]) |
Executes an instance method
(Inherited from JVMBridgeBase) | |
IExecuteWithSignatureArray<T> |
Execute the method and build the result as an array of T (Inherited from JVMBridgeBase) | |
IGetField(String) |
Gets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
IGetFieldArray<TReturn> |
Gets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
IsAssignableFrom(IJavaType) |
Verify if this IJVMBridgeBase is assignable from clazz (Inherited from JVMBridgeBase<TClass>) | |
IsAssignableFrom(String) |
Verify if this IJVMBridgeBase is assignable from clazz (Inherited from JVMBridgeBase<TClass>) | |
IsAssignableFrom<T>() |
Verify if this IJVMBridgeBase is assignable from T (Inherited from JVMBridgeBase<TClass>) | |
ISetField(String, Object) |
Sets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
ISetField<TValue>(String, TValue) |
Sets the value of a field identified by fieldName (Inherited from JVMBridgeBase) | |
IsInstanceOf(IJavaType) |
Verify if this IJVMBridgeBase is an instance of clazz (Inherited from JVMBridgeBase) | |
IsInstanceOf(String) |
Verify if this IJVMBridgeBase is an instance of clazz (Inherited from JVMBridgeBase) | |
IsInstanceOf<T>() |
Verify if this IJVMBridgeBase is an instance of T (Inherited from JVMBridgeBase) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
MonitorEnter |
Enters the monitor associated with the underlying with this IJVMBridgeBase (Inherited from JVMBridgeBase) | |
MonitorExit |
Exits the monitor associated with the underlying with this IJVMBridgeBase (Inherited from JVMBridgeBase) | |
Notify |
Wakes up a single thread that is waiting on this object's monitor.
(Inherited from JVMBridgeBase) | |
NotifyAll |
Wakes up all threads that are waiting on this object's monitor.
(Inherited from JVMBridgeBase) | |
RuntimeIsInstanceOf<T> |
Verify if this IJVMBridgeBase is an instance of T; the constraints of T are checked at runtime, while IsInstanceOf<T> () checks T constraint at compile time
(Inherited from JVMBridgeBase) | |
ToString | Returns a string that represents the current object. (Inherited from JVMBridgeBase) | |
Wait() |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
(Inherited from JVMBridgeBase) | |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
(Inherited from JVMBridgeBase) | |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
(Inherited from JVMBridgeBase) |
Name | Description | |
---|---|---|
Convert<TReturn> |
Converts a generic object
(Defined by JCOBridgeExtensions) | |
ToNative |
Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions) |
public sealed class CLRActionListener : JVMBridgeListener { public override string ClassName { get { return "org.mases.jcobridge.specialized.JCActionListener"; } } // the full name of class, in the JVM counterpart, of the Java class implementing the event public CLRActionListener(EventHandler<CLRListenerEventArgs<CLRActionEventData>> handler) // the handler with the expected type { AddEventHandler("actionPerformed", handler); // allocate the event handler associated to the action the Java interface to be managed in C# } }