2 Replies Latest reply on Sep 10, 2007 9:25 PM by jbmadair

    Finding out a component's runtime name from within itself

    jbmadair

      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.

      Thanks!