[jboss-dev-forums] [JBoss AS7 Development] - Re: Lazy modules resolving / linking

David Lloyd do-not-reply at jboss.com
Sat Sep 25 17:12:13 EDT 2010


David Lloyd [http://community.jboss.org/people/david.lloyd%40jboss.com] created the discussion

"Re: Lazy modules resolving / linking"

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

--------------------------------------------------------------
OSGi dynamic import is implemented using a "fallback loader", which basically gets queried whenever a class or package is unknown to the loader.

You could use the same idea for lazy loading.  In your fallback loader, attempt to load the corresponding module.  If it succeeds, add it as a dependency to the Module, and then relink the module; then retry the load.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/563668#563668]

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100925/7395f24a/attachment.html 


More information about the jboss-dev-forums mailing list