public static final JILocalCoClass getCoClass(JIOPCEventSink instance){ //Define the onEvent method for this interface JILocalParamsDescriptor oeParams=new JILocalParamsDescriptor(); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsObject(new JIArray(outStruct(),null,1,true), JIFlags.FLAG_NULL); JILocalMethodDescriptor oeMethod=new JILocalMethodDescriptor("onEvent",0,oeParams); //This identify the JIOPCEventSink and not the interface JILocalInterfaceDefinition def=new JILocalInterfaceDefinition(LOCAL_CLASS_IID,false); def.addMethodDescriptor(oeMethod); JILocalCoClass coClass=(instance==null) ? new JILocalCoClass(def,JIOPCEventSink.class) : new JILocalCoClass(def,instance); ArrayList list = new ArrayList(); //Supported interface list.add(OPC_IID); coClass.setSupportedEventInterfaces(list); return coClass; } }
public static final JILocalCoClass getCoClass ( final JIOPCEventSink instance ) { //Define the onEvent method for this interface final JILocalParamsDescriptor oeParams = new JILocalParamsDescriptor (); oeParams.addInParamAsType ( Integer.class, JIFlags.FLAG_NULL ); oeParams.addInParamAsType ( Integer.class, JIFlags.FLAG_NULL ); oeParams.addInParamAsType ( Integer.class, JIFlags.FLAG_NULL ); oeParams.addInParamAsType ( Integer.class, JIFlags.FLAG_NULL ); oeParams.addInParamAsObject ( new JIArray ( outStruct (), null, 1, true ), JIFlags.FLAG_NULL ); final JILocalMethodDescriptor oeMethod = new JILocalMethodDescriptor ( "onEvent", 0, oeParams ); //This identify the JIOPCEventSink and not the interface final JILocalInterfaceDefinition def = new JILocalInterfaceDefinition ( LOCAL_CLASS_IID, false ); def.addMethodDescriptor ( oeMethod ); final JILocalCoClass coClass = instance == null ? new JILocalCoClass ( def, JIOPCEventSink.class ) : new JILocalCoClass ( def, instance ); final ArrayList list = new ArrayList (); //Supported interface list.add ( OPC_IID ); coClass.setSupportedEventInterfaces ( list ); return coClass; } }
public static final JILocalCoClass getCoClass(JIOPCEventSink instance){ //Define the onEvent method for this interface JILocalParamsDescriptor oeParams=new JILocalParamsDescriptor(); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsType(Integer.class, JIFlags.FLAG_NULL); oeParams.addInParamAsObject(new JIArray(outStruct(),null,1,true), JIFlags.FLAG_NULL); JILocalMethodDescriptor oeMethod=new JILocalMethodDescriptor("onEvent",0,oeParams); //This identify the JIOPCEventSink and not the interface JILocalInterfaceDefinition def=new JILocalInterfaceDefinition(LOCAL_CLASS_IID,false); def.addMethodDescriptor(oeMethod); JILocalCoClass coClass=(instance==null) ? new JILocalCoClass(def,JIOPCEventSink.class) : new JILocalCoClass(def,instance); ArrayList list = new ArrayList(); //Supported interface list.add(OPC_IID); coClass.setSupportedEventInterfaces(list); return coClass; } }
this.coClass.setSupportedEventInterfaces ( eventInterfaces );
list.add("34A715A0-6587-11D0-924A-0020AFC7AC4D"); list.add("00020400-0000-0000-c000-000000000046"); javaComponent.setSupportedEventInterfaces(list);
list.add ( "34A715A0-6587-11D0-924A-0020AFC7AC4D" ); list.add ( "00020400-0000-0000-c000-000000000046" ); javaComponent.setSupportedEventInterfaces ( list );
javaComponent.setSupportedEventInterfaces(list);