/** * @return {@code true} if Thymeleaf is present in the classpath, otherwise * {@code false}. */ public static boolean isThymeleafAvailable() { if (thymeleafAvailable == null) { thymeleafAvailable = ClassUtils.isPresent("org.thymeleaf.TemplateEngine"); } return thymeleafAvailable; }
/** * @return {@code true} if the JBoss VFS2 infrastructure is present in the * classpath, otherwise {@code false}. */ public static boolean isJBossVFS2Available() { if (jbossVFSv2Available == null) { jbossVFSv2Available = ClassUtils.isPresent("org.jboss.virtual.VFS"); } return jbossVFSv2Available; }
/** * @return {@code true} if the JSTL is present in the classpath, otherwise * {@code false}. */ public static boolean isJstlAvailable() { if (jstlAvailable == null) { jstlAvailable = ClassUtils.isPresent("javax.servlet.jsp.jstl.core.Config"); } return jstlAvailable; }
/** * @return {@code true} if the JBoss VFS3 infrastructure is present in the * classpath, otherwise {@code false}. */ public static boolean isJBossVFS3Available() { if (jbossVFSv3Available == null) { jbossVFSv3Available = ClassUtils.isPresent("org.jboss.vfs.VFS"); } return jbossVFSv3Available; }
/** * @return {@code true} if the JBoss VFS3 infrastructure is present in the * classpath, otherwise {@code false}. */ public static boolean isJBossVFS3Available() { if (jbossVFSv3Available == null) { jbossVFSv3Available = ClassUtils.isPresent("org.jboss.vfs.VFS"); } return jbossVFSv3Available; }
/** * @return {@code true} if the JSTL is present in the classpath, otherwise * {@code false}. */ public static boolean isJstlAvailable() { if (jstlAvailable == null) { jstlAvailable = ClassUtils.isPresent("javax.servlet.jsp.jstl.core.Config"); } return jstlAvailable; }
/** * @return {@code true} if Thymeleaf is present in the classpath, otherwise * {@code false}. */ public static boolean isThymeleafAvailable() { if (thymeleafAvailable == null) { thymeleafAvailable = ClassUtils.isPresent("org.thymeleaf.TemplateEngine"); } return thymeleafAvailable; }
/** * @return {@code true} if the JBoss VFS2 infrastructure is present in the * classpath, otherwise {@code false}. */ public static boolean isJBossVFS2Available() { if (jbossVFSv2Available == null) { jbossVFSv2Available = ClassUtils.isPresent("org.jboss.virtual.VFS"); } return jbossVFSv2Available; }
if (!ClassUtils.isPresent(exportClassName)) { StringBuilder sb = new StringBuilder("Unable to export in the "); sb.append(exportFormat);
if (!ClassUtils.isPresent(exportClassName)) { StringBuilder sb = new StringBuilder("Unable to export in the "); sb.append(exportFormat);
if (!ClassUtils.isPresent(exportClass)) { throw new DandelionException("Unable to export in " + exportConf.getFormat() + " format because the export class cannot be found. Did you forget to add an extra dependency?");
if (!ClassUtils.isPresent(exportClass)) { throw new DandelionException("Unable to export in " + exportConf.getFormat() + " format because the export class cannot be found. Did you forget to add an extra dependency?");