[jboss-user] [JBoss Seam] - Finding out a component's runtime name from within itself

gcomnz do-not-reply at jboss.com
Mon Sep 10 16:41:29 EDT 2007

If a component is created in components.xml with a new name, for instance:

  | 	<component name="newName"
  | 		class="com.xyz.OriginalName" />

How can it find out its own name from within itself.

This is frequently needed when I outject a context variable, and at other times. I've searched for a solution, and I have a feeling I'm missing something completely obvious.

I of course realize that its easy to discover the name within a @Name annotation, but that's not really as interesting as the real runtime name.


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

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

More information about the jboss-user mailing list