[jboss-user] [JBoss Microcontainer Development] - Wildcard support in Dynamic-imports

Ales Justin do-not-reply at jboss.com
Wed Jun 9 05:46:37 EDT 2010


Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

"Wildcard support in Dynamic-imports"

To view the discussion, visit: http://community.jboss.org/message/547011#547011

--------------------------------------------------------------
> 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
[http://community.jboss.org/message/547011#547011]

Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100609/551a0827/attachment.html 


More information about the jboss-user mailing list