[jboss-dev-forums] [JBoss AS7 Development] - Re: META-INF/services for module extensions - question/issue

Brian Stansberry do-not-reply at jboss.com
Tue Sep 13 12:03:06 EDT 2011


Brian Stansberry [http://community.jboss.org/people/brian.stansberry] created the discussion

"Re: META-INF/services for module extensions - question/issue"

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

--------------------------------------------------------------
Yes, the singleton will be respected.

Say you have com.foo.Singleton.class and it only exists in jar singleton.jar. So long as there is only one module Mx that includes singleton.jar in its <resources> element, there will only be one classloader that defines a class named com.foo.Singleton.

Other modules that add a dependency on Mx only declare that they want to have access to whatever classes Mx exposes; they aren't declaring that they can be a defining classloader for the bits described in Mx's <resources> element.
--------------------------------------------------------------

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

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/20110913/611e08c4/attachment.html 


More information about the jboss-dev-forums mailing list