Class MacroFactory

java.lang.Object
org.eclnt.jsfserver.elements.macros.MacroFactory
All Implemented Interfaces:
Serializable

public class MacroFactory extends Object implements Serializable
See Also:
  • Constructor Details

    • MacroFactory

      public MacroFactory()
  • Method Details

    • initializeWebappInstance

      public static void initializeWebappInstance(javax.servlet.ServletContext servletContext)
      Each web application has its macro definitions. The macros are stored in the /eclntjsfserver/confid/macros directory. The macros are read via Web Resource access.
    • getWebappInstance

      public static MacroFactory getWebappInstance()
      Typical runtime usage. initializeWebappInstance(ServletContext) needs to be called one time before.
    • getDirInstance

      public static MacroFactory getDirInstance(String directory, ClassLoader macroClassLoader)
      Design time usage: this function is called e.g. by the Layout Editor.
    • refreshDirInstances

      public static void refreshDirInstances()
      Refreshes all directory instances. Background: this functions is e.g. required by Layout Editor.
    • getMacro

      public IMacro getMacro(String macroName)
    • getMacros

      public List<IMacro> getMacros(String tagName)
      Returns all macros that are valid for a certain conmponent.
    • getDefaultMacros

      public Set<IDefaultMacro> getDefaultMacros()