getReference()
method returns the CDI managed bean reference (proxy) of the given bean class.Note that this actually returns a client proxy and the underlying actual instance is thus always auto-created.Omni-Util method:
Usage:
import
org.omnifaces.util.Beans;
...
// in/out CDI
bean TestBean
TestBean
testBean = Beans.getReference(TestBean.class);
Niciun comentariu :
Trimiteți un comentariu