miercuri, 4 februarie 2015

[OmniFaces utilities(2.0)] Get the CDI managed bean instance (actual) of the given bean class and creates one if one doesn't exist


[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:
Usage:

import org.omnifaces.util.Beans;
...
// in/out CDI bean TestBean
TestBean testBean = Beans.getInstance(TestBean.class);

Niciun comentariu:

Trimiteți un comentariu