Community

Wildcard support in Dynamic-imports

reply from Ales Justin in JBoss Microcontainer Development - View the full discussion
2) How to get the DelegateLoader from resolved Module / RDI?

OK, this one looks easy to solve:

 

if (item.resolve(controller))
      {
         Module resolvedModule = item.getResolvedModule();
         if (resolvedModule instanceof ClassLoaderPolicyModule)
         {
            ClassLoaderPolicyModule clpm = (ClassLoaderPolicyModule) resolvedModule;
            DelegateLoader loader = clpm.getDelegateLoader(module, requirement);

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer Development at Community