[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-java-com
Subject:    CORBA DSI Equivalent
From:       Biff Beers <sasbfb () WNT ! SAS ! COM>
Date:       1998-02-25 23:17:04
[Download RAW message or body]


Does Java/COM have an equivalent to CORBA's Dynamic Skeleton Interface
or is such a thing waiting in the wings? I'm particularly interested in
sinking events from several COM objects with objects of one generic
class. Let me try to explain my problem in terms of
com.ms.com.ConnectionPointCookie. Here is the constructor for that
class:

public ConnectionPointCookie(Object source, Object sink, Class
connectionInterface);

As I understand this class, events from the "source" object will be
automatically adapted into method calls on the "sink" object provided
the "sink" object implements the "connectionInterface" where
"connectionInterface" is some event interface generated by the jactivex
tool in the MS SDK for Java.

What I want to do is adapt events from the "source" object into method
calls on the "sink" object using my own adapter. And I want to do so
without any class having to implement the "connectionInterface". If I
have to implement the "connectionInterface", then my class will not be
generic enough.

I would need to be able to capture the vtable offset of the method in
the event interface and the parameters of the method call (most likely
as an array of Variants). Does anyone know how to do that?

Thanks,
Biff Beers
SAS Institute Inc.

----------------------------------------------------------------
Users Guide http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://microsoft.ease.lsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic