REMOVED IN OmniFaces 2.1 Final
[OmniFaces utilities] The
isCDIAvailableInGlassFish()
method returns true
if CDI is available in GlassFish.Method:
Usage:
import org.omnifaces.util.Hacks;
...
boolean is =
Hacks.isCDIAvailableInGlassFish(Faces.getServletContext());
if(is){
// is
} else {
//is not
}
Niciun comentariu :
Trimiteți un comentariu