Guidance for Use of MDR

View: New views
3 Messages — Rating Filter:   Alert me  

Guidance for Use of MDR

by bhakti daftardar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Respected Sir
As i had told you in my previous mail about the confusion with the use of MDR with respect to my project. Now the confusion is some what cleared.

My Current Status is that i have got the  UML METAMODEL from poseidon's website and i have download and used it to create JMI Interfaces(by using MDR first Instantiating a MOF then importing the UML METAMODEL and generating JMI Interfaces). Now My problem is how to get the Implementation of the hundred of classes using MDR.  I got to know that MDR generates the implementation of the interfaces on the fly by generating byte code for it. But how to i see,access and use these classes.
Can i extend these classes for my project?


If i get these classes then can i instantiate objects of these classes by loading a XMI file of any UML Diagram using MDR. As i have to basically read any UML Diagram XMI to compute Metrics on it.

Thanking you in advance
With regards
Bhakti Daftardar
CDAC MUMBAI




--
Bhakti Daftardar

Re: Guidance for Use of MDR

by Boris Gruschko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Bhakti,

I don't think, You are supposed to subclass the implementations of JMI interfaces. Normally you would only want to interact with the implementation through the JMIs.

Cheers,
Boris Gruschko

On 2/10/06, bhakti daftardar <bhakti.daftardar@...> wrote:

Respected Sir
As i had told you in my previous mail about the confusion with the use of MDR with respect to my project. Now the confusion is some what cleared.

My Current Status is that i have got the  UML METAMODEL from poseidon's website and i have download and used it to create JMI Interfaces(by using MDR first Instantiating a MOF then importing the UML METAMODEL and generating JMI Interfaces). Now My problem is how to get the Implementation of the hundred of classes using MDR.  I got to know that MDR generates the implementation of the interfaces on the fly by generating byte code for it. But how to i see,access and use these classes.
Can i extend these classes for my project?


If i get these classes then can i instantiate objects of these classes by loading a XMI file of any UML Diagram using MDR. As i have to basically read any UML Diagram XMI to compute Metrics on it.

Thanking you in advance
With regards
Bhakti Daftardar
CDAC MUMBAI




--
Bhakti Daftardar


Parent Message unknown RE: Guidance for Use of MDR

by ludger goeke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 Hi Bhakti,

you can generate "Java Metadata Interfaces", that correspond to the classes
of your metamodel, with the Netbeans-environment. Those interfaces allow the
access to the appropriate objects,that are generated on the fly by the
NBMDR. Therefore you have to compile the generated interfaces and put them
into a "jar-File". If you are working with the NBMDR that is integrated
Netbeans-environment you must write a special manifest for that jar-file.
There is an example on the netbeans site that shows how to generate the
interfaces at http://mdr.netbeans.org/example.html.

Regards
Ludger



>>I got to know that MDR generates the
>>implementation of the interfaces on the fly by generating byte code for
>>it.But how to i see,access and use these classes.
>>Can i extend these classes for my project?


--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner