3 Replies Latest reply on Sep 2, 2014 2:10 PM by Lincoln Baxter III

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

    Ondrej Zizka Master

      Hi,

       

      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?

       

      Thanks,

      Ondra

      _______________________________________________

      forge-users mailing list

      forge-users@lists.jboss.org

      https://lists.jboss.org/mailman/listinfo/forge-users