com4j
com4j copied to clipboard
Some methods subscribers are not invoked
I'm using com4j and it's working as expected but I've a problem when it comes to event subscribe that I can't figure out what's going on, when I subscribe my class some methods are invoked but some not.
fooClass.advise(IFooEvent.class, new FooEventImplementation()); this is an example of a method that is not invoked when the action occurs on the application com side, but I don't see errors or anything related.
@DISPID(213) //this method is not invoked when the action occurs.
public void onExit(
int exitCode,
java.lang.String description) {
throw new UnsupportedOperationException();
}
@DISPID(214) //this method is invoked
public void onLineChangedEvent() {
throw new UnsupportedOperationException();
}
Any idea what could it be?
Thanks beforehand.