/** * Returns the interface identifier of this COCLASS. <br> * @return * @see #JILocalCoClass(JILocalInterfaceDefinition, Class) * @see #JILocalCoClass(JILocalInterfaceDefinition, Object) * @see JILocalInterfaceDefinition#getInterfaceIdentifier() */ public String getCoClassIID() { return interfaceDefinition.getInterfaceIdentifier(); }
/** * Returns the interface identifier of this COCLASS. <br> * * @return * @see #JILocalCoClass(JILocalInterfaceDefinition, Class) * @see #JILocalCoClass(JILocalInterfaceDefinition, Object) * @see JILocalInterfaceDefinition#getInterfaceIdentifier() */ public String getCoClassIID () { return this.interfaceDefinition.getInterfaceIdentifier (); }
/** * Returns the interface identifier of this COCLASS. <br> * @return * @see #JILocalCoClass(JILocalInterfaceDefinition, Class) * @see #JILocalCoClass(JILocalInterfaceDefinition, Object) * @see JILocalInterfaceDefinition#getInterfaceIdentifier() */ public String getCoClassIID() { return interfaceDefinition.getInterfaceIdentifier(); }
private void init(JILocalInterfaceDefinition interfaceDefinition,Class clazz,Object instance,boolean realIID) { listOfSupportedInterfaces.add(IID_IDispatch.toUpperCase()); //IDispatch listOfSupportedInterfaces.add("00000131-0000-0000-C000-000000000046"); //IRemUnknown this.interfaceDefinition = interfaceDefinition; interfaceDefinition .clazz = clazz; interfaceDefinition.instance = instance; listOfSupportedInterfaces.add(interfaceDefinition.getInterfaceIdentifier().toUpperCase()); mapOfIIDsToInterfaceDefinitions.put(interfaceDefinition.getInterfaceIdentifier().toUpperCase(),interfaceDefinition); this.realIID = realIID; }
private void init(JILocalInterfaceDefinition interfaceDefinition,Class clazz,Object instance,boolean realIID) { listOfSupportedInterfaces.add(IID_IDispatch.toUpperCase()); //IDispatch listOfSupportedInterfaces.add("00000131-0000-0000-C000-000000000046"); //IRemUnknown this.interfaceDefinition = interfaceDefinition; interfaceDefinition .clazz = clazz; interfaceDefinition.instance = instance; listOfSupportedInterfaces.add(interfaceDefinition.getInterfaceIdentifier().toUpperCase()); mapOfIIDsToInterfaceDefinitions.put(interfaceDefinition.getInterfaceIdentifier().toUpperCase(),interfaceDefinition); this.realIID = realIID; }
private void init ( final JILocalInterfaceDefinition interfaceDefinition, final Class clazz, final Object instance, final boolean realIID ) { this.listOfSupportedInterfaces.add ( IID_IDispatch.toUpperCase () ); //IDispatch this.listOfSupportedInterfaces.add ( "00000131-0000-0000-C000-000000000046" ); //IRemUnknown this.interfaceDefinition = interfaceDefinition; interfaceDefinition.clazz = clazz; interfaceDefinition.instance = instance; this.listOfSupportedInterfaces.add ( interfaceDefinition.getInterfaceIdentifier ().toUpperCase () ); this.mapOfIIDsToInterfaceDefinitions.put ( interfaceDefinition.getInterfaceIdentifier ().toUpperCase (), interfaceDefinition ); this.realIID = realIID; }
/**Add another interface definition and it's supporting object instance. * * @param interfaceDefinition implementing structurally the definition of the COM callback interface. * @param instance instance for serving requests from COM client. Must implement * the <code>interfaceDefinition</code> fully. * @throws IllegalArgumentException if <code>interfaceDefinition</code> or <code>instance</code> are <code>null</code>. */ public void addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition, Object instance ) { if (interfaceDefinition == null || instance == null) { throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COM_RUNTIME_INVALID_CONTAINER_INFO)); } interfaceDefinition.instance = instance; String s = interfaceDefinition.getInterfaceIdentifier().toUpperCase(); listOfSupportedInterfaces.add(s); listOfSupportedEventInterfaces.add(s); mapOfIIDsToInterfaceDefinitions.put(s,interfaceDefinition); }
/** Add another interface definition and it's class. Make sure that this class has a default constructor, * so that instantiation using <i>reflection</i> can take place. * * @param interfaceDefinition implementing structurally the definition of the COM callback interface. * @param clazz instance for serving requests from COM client. Must implement * the <code>interfaceDefinition</code> fully. * @throws IllegalArgumentException if <code>interfaceDefinition</code> or <code>clazz</code> are <code>null</code>. */ public void addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition, Class clazz ) { if (interfaceDefinition == null || clazz == null) { throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COM_RUNTIME_INVALID_CONTAINER_INFO)); } interfaceDefinition.clazz = clazz; String s = interfaceDefinition.getInterfaceIdentifier().toUpperCase(); listOfSupportedInterfaces.add(s); listOfSupportedEventInterfaces.add(s); mapOfIIDsToInterfaceDefinitions.put(s,interfaceDefinition); }
/**Add another interface definition and it's supporting object instance. * * @param interfaceDefinition implementing structurally the definition of the COM callback interface. * @param instance instance for serving requests from COM client. Must implement * the <code>interfaceDefinition</code> fully. * @throws IllegalArgumentException if <code>interfaceDefinition</code> or <code>instance</code> are <code>null</code>. */ public void addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition, Object instance ) { if (interfaceDefinition == null || instance == null) { throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COM_RUNTIME_INVALID_CONTAINER_INFO)); } interfaceDefinition.instance = instance; String s = interfaceDefinition.getInterfaceIdentifier().toUpperCase(); listOfSupportedInterfaces.add(s); listOfSupportedEventInterfaces.add(s); mapOfIIDsToInterfaceDefinitions.put(s,interfaceDefinition); }
/** Add another interface definition and it's class. Make sure that this class has a default constructor, * so that instantiation using <i>reflection</i> can take place. * * @param interfaceDefinition implementing structurally the definition of the COM callback interface. * @param clazz instance for serving requests from COM client. Must implement * the <code>interfaceDefinition</code> fully. * @throws IllegalArgumentException if <code>interfaceDefinition</code> or <code>clazz</code> are <code>null</code>. */ public void addInterfaceDefinition(JILocalInterfaceDefinition interfaceDefinition, Class clazz ) { if (interfaceDefinition == null || clazz == null) { throw new IllegalArgumentException(JISystem.getLocalizedMessage(JIErrorCodes.JI_COM_RUNTIME_INVALID_CONTAINER_INFO)); } interfaceDefinition.clazz = clazz; String s = interfaceDefinition.getInterfaceIdentifier().toUpperCase(); listOfSupportedInterfaces.add(s); listOfSupportedEventInterfaces.add(s); mapOfIIDsToInterfaceDefinitions.put(s,interfaceDefinition); }
/** * Add another interface definition and it's supporting object instance. * * @param interfaceDefinition * implementing structurally the definition of the COM callback * interface. * @param instance * instance for serving requests from COM client. Must implement * the <code>interfaceDefinition</code> fully. * @throws IllegalArgumentException * if <code>interfaceDefinition</code> or <code>instance</code> * are <code>null</code>. */ public void addInterfaceDefinition ( final JILocalInterfaceDefinition interfaceDefinition, final Object instance ) { if ( interfaceDefinition == null || instance == null ) { throw new IllegalArgumentException ( JISystem.getLocalizedMessage ( JIErrorCodes.JI_COM_RUNTIME_INVALID_CONTAINER_INFO ) ); } interfaceDefinition.instance = instance; final String s = interfaceDefinition.getInterfaceIdentifier ().toUpperCase (); this.listOfSupportedInterfaces.add ( s ); this.listOfSupportedEventInterfaces.add ( s ); this.mapOfIIDsToInterfaceDefinitions.put ( s, interfaceDefinition ); }
/** * Add another interface definition and it's class. Make sure that this * class has a default constructor, * so that instantiation using <i>reflection</i> can take place. * * @param interfaceDefinition * implementing structurally the definition of the COM callback * interface. * @param clazz * instance for serving requests from COM client. Must implement * the <code>interfaceDefinition</code> fully. * @throws IllegalArgumentException * if <code>interfaceDefinition</code> or <code>clazz</code> are * <code>null</code>. */ public void addInterfaceDefinition ( final JILocalInterfaceDefinition interfaceDefinition, final Class clazz ) { if ( interfaceDefinition == null || clazz == null ) { throw new IllegalArgumentException ( JISystem.getLocalizedMessage ( JIErrorCodes.JI_COM_RUNTIME_INVALID_CONTAINER_INFO ) ); } interfaceDefinition.clazz = clazz; final String s = interfaceDefinition.getInterfaceIdentifier ().toUpperCase (); this.listOfSupportedInterfaces.add ( s ); this.listOfSupportedEventInterfaces.add ( s ); this.mapOfIIDsToInterfaceDefinitions.put ( s, interfaceDefinition ); }