[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

alesj do-not-reply at jboss.com
Mon Jun 8 04:05:29 EDT 2009

"david.lloyd at jboss.com" wrote : OK how about this.  What is the mechanism to find the DeploymentUnit that a Class belongs to?  Does jboss-cl give us something which does this?
You can do this:
(1) Get CL for the class
(2) Get the Module for CL
(3) Search all DUs for matching Module
--> the one that has that Module as an attachment is your DU

There might be a faster way, but I need to check the code,
as this was off the top of my head. :-)

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4235907#4235907

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4235907

More information about the jboss-user mailing list