Codota Logo
Configuration$LegacyDefaultFileTemplateLoader.<init>
Code IndexAdd Codota to your IDE (free)

How to use
freemarker.template.Configuration$LegacyDefaultFileTemplateLoader
constructor

Best Java code snippets using freemarker.template.Configuration$LegacyDefaultFileTemplateLoader.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.freemarker/freemarker

private static TemplateLoader createDefaultTemplateLoader(
    Version incompatibleImprovements, TemplateLoader existingTemplateLoader) {
  if (incompatibleImprovements.intValue() < _TemplateAPI.VERSION_INT_2_3_21) {
    if (existingTemplateLoader instanceof LegacyDefaultFileTemplateLoader) {
      return existingTemplateLoader;
    }
    try {
      return new LegacyDefaultFileTemplateLoader();
    } catch (Exception e) {
      CACHE_LOG.warn("Couldn't create legacy default TemplateLoader which accesses the current directory. "
          + "(Use new Configuration(Configuration.VERSION_2_3_21) or higher to avoid this.)", e);
      return null;
    }
  } else {
    return null;
  }
}
 
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

private static TemplateLoader createDefaultTemplateLoader(
    Version incompatibleImprovements, TemplateLoader existingTemplateLoader) {
  if (incompatibleImprovements.intValue() < _TemplateAPI.VERSION_INT_2_3_21) {
    if (existingTemplateLoader instanceof LegacyDefaultFileTemplateLoader) {
      return existingTemplateLoader;
    }
    try {
      return new LegacyDefaultFileTemplateLoader();
    } catch (Exception e) {
      CACHE_LOG.warn("Couldn't create legacy default TemplateLoader which accesses the current directory. "
          + "(Use new Configuration(Configuration.VERSION_2_3_21) or higher to avoid this.)", e);
      return null;
    }
  } else {
    return null;
  }
}
 
origin: org.freemarker/freemarker-gae

private static TemplateLoader createDefaultTemplateLoader(
    Version incompatibleImprovements, TemplateLoader existingTemplateLoader) {
  if (incompatibleImprovements.intValue() < _TemplateAPI.VERSION_INT_2_3_21) {
    if (existingTemplateLoader instanceof LegacyDefaultFileTemplateLoader) {
      return existingTemplateLoader;
    }
    try {
      return new LegacyDefaultFileTemplateLoader();
    } catch (Exception e) {
      CACHE_LOG.warn("Couldn't create legacy default TemplateLoader which accesses the current directory. "
          + "(Use new Configuration(Configuration.VERSION_2_3_21) or higher to avoid this.)", e);
      return null;
    }
  } else {
    return null;
  }
}
 
freemarker.templateConfiguration$LegacyDefaultFileTemplateLoader<init>

Popular methods of Configuration$LegacyDefaultFileTemplateLoader

    Popular in Java

    • Updating database using SQL prepared statement
    • getSharedPreferences (Context)
    • onRequestPermissionsResult (Fragment)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • BufferedReader (java.io)
      Reads text from a character-input stream, buffering characters so as to provide for the efficient re
    • Connection (java.sql)
      A connection represents a link from a Java application to a database. All SQL statements and results
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • Map (java.util)
      A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now