Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access domain class of main project inside custom plugin project

Tags:

grails

I am working on a project which is further subdivided into plugin projects. So I include all plugins inside Main project and it works.

Now there are few domain classes like User which are inside Main project. I am trying to access it inside my custom plugin project.

Note: I am not trying to access Plugin's domain class inside main project but reverse of it.

Thanks.

like image 354
Chetan Avatar asked Nov 24 '25 18:11

Chetan


1 Answers

It is not possible to reference application classes in a plugin. If you think about it because a plugin should be an independent functionality, that can be plugged in any application.

like image 85
Saurabh Mishra Avatar answered Nov 28 '25 02:11

Saurabh Mishra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!