[OmniFaces utilities] The
resolve() metohd returns the CDI managed bean representation of the given bean class.Method:
import org.omnifaces.util.Beans;
import
javax.enterprise.inject.spi.Bean;
...
// in/out CDI
bean TestBean
Bean<TestBean>
testBean = Beans.resolve(TestBean.class);

Niciun comentariu:
Trimiteți un comentariu