/** Returns a <b>local</b> COM Object representation for the Java component. <code>IJIComObject.IsLocalReference()</code> * method will return <code>true</code> for all objects built by this method. Another important point to note is that a * <code>javaComponent</code> can only export one reference to itself. Reusing the same <code>javaComponent</code> in another * call to this method will raise an exception. * * @param session session to attach <code>comObject</code> to. * @param javaComponent * @return * @throws JIException */ public static IJIComObject buildObject(JISession session,JILocalCoClass javaComponent) throws JIException { return JIFrameworkHelper.instantiateLocalComObject(session, javaComponent); }
/** Returns a <b>local</b> COM Object representation for the Java component. <code>IJIComObject.IsLocalReference()</code> * method will return <code>true</code> for all objects built by this method. Another important point to note is that a * <code>javaComponent</code> can only export one reference to itself. Reusing the same <code>javaComponent</code> in another * call to this method will raise an exception. * * @param session session to attach <code>comObject</code> to. * @param javaComponent * @return * @throws JIException */ public static IJIComObject buildObject(JISession session,JILocalCoClass javaComponent) throws JIException { return JIFrameworkHelper.instantiateLocalComObject(session, javaComponent); }
/** * Returns a <b>local</b> COM Object representation for the Java component. * <code>IJIComObject.IsLocalReference()</code> method will return * <code>true</code> for all objects built by this method. Another important * point to note is that a <code>javaComponent</code> can only export one * reference to itself. Reusing the same <code>javaComponent</code> in * another * call to this method will raise an exception. * * @param session * session to attach <code>comObject</code> to. * @param javaComponent * @return * @throws JIException */ public static IJIComObject buildObject ( final JISession session, final JILocalCoClass javaComponent ) throws JIException { return JIFrameworkHelper.instantiateLocalComObject ( session, javaComponent ); }