I use javax.inject.Named
and javax.enterprise.context.*Scoped
plus org.omnifaces.cdi.ViewScoped
to define the life-scope of my view-beans.
Now I want to get a list of all instantiated beans. First, I thought this blog-entry covers this issue, but it only lists @ManagedBeans
.
Do you know how to list them? Is this possible without being fixed on an implementation or even a version of JavaEE?
PS: I already found org.omnifaces.cdi.BeanStorage
, but I don't have any idea how to access its map.