Class MacroFactory
java.lang.Object
org.eclnt.jsfserver.elements.macros.MacroFactory
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MacroFactory
getDirInstance
(String directory, ClassLoader macroClassLoader) Design time usage: this function is called e.g. by the Layout Editor.Returns all macros that are valid for a certain conmponent.static MacroFactory
Typical runtime usage.static void
initializeWebappInstance
(javax.servlet.ServletContext servletContext) Each web application has its macro definitions.static void
Refreshes all directory instances.
-
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
Typical runtime usage.initializeWebappInstance(ServletContext)
needs to be called one time before. -
getDirInstance
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
-
getMacros
Returns all macros that are valid for a certain conmponent. -
getDefaultMacros
-