Class CmsMacroResolver

java.lang.Object
org.opencms.util.CmsMacroResolver
All Implemented Interfaces:
I_CmsMacroResolver
Direct Known Subclasses:
CmsGalleryNameMacroResolver, CmsKeyDummyMacroResolver, CmsNotificationMacroResolver, CmsVersionMacroResolver

public class CmsMacroResolver extends Object implements I_CmsMacroResolver
Resolves macros in the form of %(key) or ${key} in an input String.

Starting with OpenCms 7.0, the preferred form of a macro is %(key). This is to avoid conflicts / confusion with the JSP EL, which also uses the ${key} syntax.

The macro names that can be resolved depend of the context objects provided to the resolver using the set... methods.

Since:
6.0.0