2 Replies Latest reply on Sep 3, 2010 7:42 AM by nimo22

    introspection of injected bean

    nimo22

      How can I determine relevant information of an injected bean, especially the (inherit) scope of an injected instance.


      For example:


      @SessionScoped @Named
      public class MyBean implements Serializable{


      @Inject BeanManager beanManager;


      @Inject Users u;


      }


      In this case, I want to know the scope of u in runtime.


      something like:


      log.info("scope of u {}, beanManager.getScopeOfBean(u));



      Is that possible?