Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I use a custom module type in another plugin?

Robert Krause
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015

Hi,

I have defined a custom module type in my plugin.xml and it works great within the plugin itself. When I try to use the custom module type in another plugin I get a ClassCastException stating, that Class of the second plugin can not be cast to the Interface defined in the first plugin and user as type in the ModuleDescriptor. This seems to happen, because the Interface is loaded by another class loader than the implementing class.

Do you have any suggestion how to fix this?

Thank you,
Robert

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Rui Rodrigues
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2015
TAGS
AUG Leaders

Atlassian Community Events