Previous Topic: com.itko.lisa.jdbridge.JDInvokerNext Topic: com.itko.lisa.jdbridge.JDProxyEventListener


com.itko.lisa.jdbridge.JDProxy

/**
 * Returns a proxy to a .NET instance that exists in the CLR after invoking its constructor.
 * @param assembly the full path to the assembly the type resides in
 * @param type     the type to instantiate
 * @param args     an array of arguments expected by the constructor
 * @return a proxy to the .NET instantiated type
 */
public static JDProxy newInstance(String assembly, String type, Object ... args)
 
/**
 * Invokes the specified method on the object represented by this proxy
 * @param method the name of the method to invoke
 * @param args   an array of arguments expected by the method
 * @return the return value of the method
 */
public Object invoke(String method, Object ... args)
 
/**
 * If the object represented by this proxy exposes .NET event delegates, this method enables the Java
 * program to register event listeners in Java code.
 * @param event the name of the event to listen for
 * @param l     the listener interface whose onEvent method gets invoked when the event is fired.
 */
public void addListener(String event, JDProxyEventListener l)
 
/**
 * Removes an event listener previously added via addListener.
 * @param event the name of the event to listen for
 * @param l     the listener interface whose onEvent method gets invoked when the event is fired.
 */
public void removeListener(String event, JDProxyEventListener l)
 
/**
 * Method to invoke to release resources when done with the proxy.
 */
public void destroy()