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

    introspection of injected bean

    nimo stephan Master

      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?