Class ScopeAttributeMacro

java.lang.Object
org.craftercms.engine.macro.impl.AbstractMacro
org.craftercms.engine.macro.impl.ScopeAttributeMacro
All Implemented Interfaces:
Macro, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.web.context.ServletContextAware

public class ScopeAttributeMacro extends AbstractMacro implements org.springframework.web.context.ServletContextAware
Represents a macro that can be an attribute from the servlet context, session or request scope.
Author:
Alfonso Vásquez
  • Constructor Details

    • ScopeAttributeMacro

      public ScopeAttributeMacro()
  • Method Details

    • setAttributeName

      public void setAttributeName(String attributeName)
    • setScope

      public void setScope(ScopeAttributeMacro.Scope scope)
    • setServletContext

      public void setServletContext(javax.servlet.ServletContext servletContext)
      Specified by:
      setServletContext in interface org.springframework.web.context.ServletContextAware
    • createMacroName

      protected String createMacroName()
      Specified by:
      createMacroName in class AbstractMacro
    • getMacroValue

      protected String getMacroValue(String str)
      Specified by:
      getMacroValue in class AbstractMacro