[OmniFaces utilities] The
getInstance()
returns the CDI managed bean instance (actual) of the given bean class and creates one if one doesn't exist.Method:
import org.omnifaces.util.Beans;
...
// in/out
CDI bean TestBean
TestBean
testBean = Beans.getInstance(TestBean.class);
Niciun comentariu :
Trimiteți un comentariu