[forge-users] Resources loading - how to limit to an addon?

Ondrej Zizka ozizka at redhat.com
Fri Aug 15 00:01:34 EDT 2014


let's say I want to look for a class, but only in given Addon's scope. 
I.e. not in it's dependencies.
How would I do that, in an effective way?

addon.getClassLoader().loadClass() would give me (I suppose) transitive 
classloaders' results too.

addon.getRepository().getAddonResources(addon.getId()) and traversing 
the results seems to be ugly solution.

Anything better?


More information about the forge-users mailing list