public static boolean isGeronimo() { if (!geronimo) { geronimo = detect(GERONIMO_CLASS); } return geronimo; }
if (isGeronimo()) { tmp = GERONIMO_ID; } else if (isGlassfish()) { tmp = GLASSFISH_ID; } else if (isJBoss()) { tmp = JBOSS_ID; } else if (isJOnAS()) { tmp = JONAS_ID; } else if (isResin()) { tmp = RESIN_ID; } else if (isWebLogic()) { tmp = WEBLOGIC_ID; } else if (isWebSphere()) { tmp = WEBSPHERE_ID; if (isTomcat()) { if (tmp == null) { tmp = TOMCAT_ID; tmp += "-" + TOMCAT_ID; } else if (isJetty()) { if (tmp == null) { tmp = JETTY_ID;
public static boolean isWebSphere() { if (!websphere) { websphere = detect(WEBSPHERE_CLASS); } return websphere; }
public static boolean isJBoss() { if (!jboss) { jboss = detect(JBOSS_CLASS); } return jboss; }
public static boolean isResin() { if (!resin) { resin = detect(RESIN_CLASS); } return resin; }
public static boolean isJetty() { if (!jetty) { jetty = detect(JETTY_CLASS); } return jetty; }
public static boolean isJOnAS() { if (!jonas) { jonas = detect(JONAS_CLASS); } return jonas; }
public static boolean isWebLogic() { if (!weblogic) { weblogic = detect(WEBLOGIC_CLASS); } return weblogic; }