Class AbstractFreeMarkerConfig

java.lang.Object
org.javalite.activeweb.freemarker.AbstractFreeMarkerConfig

public abstract class AbstractFreeMarkerConfig extends Object
Author:
Igor Polevoy
  • Constructor Details

    • AbstractFreeMarkerConfig

      public AbstractFreeMarkerConfig()
  • Method Details

    • setConfiguration

      public void setConfiguration(freemarker.template.Configuration config)
    • getConfiguration

      public freemarker.template.Configuration getConfiguration()
    • registerTag

      public void registerTag(String name, FreeMarkerTag tag)
      Registers an application-specific tag.
      Parameters:
      name - name of tag.
      tag - tag instance.
    • getTag

      public FreeMarkerTag getTag(String tagName)
      Returns an instance of FreeMarkerTag. Use this method to further configure specific tags.
      Parameters:
      tagName - name of tag as used in a template
      Returns:
      instance of registered tag
    • init

      public abstract void init()
      Called by framework during initialization.
    • inject

      public void inject(com.google.inject.Injector injector)
      Injects user tags with members
      Parameters:
      injector - user tags with members using this injector.