Package org.craftercms.engine.macro.impl
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
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.craftercms.engine.macro.impl.AbstractMacro
macroName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
getMacroValue
(String str) void
setAttributeName
(String attributeName) void
void
setServletContext
(javax.servlet.ServletContext servletContext) Methods inherited from class org.craftercms.engine.macro.impl.AbstractMacro
afterPropertiesSet, getName, resolve
-
Constructor Details
-
ScopeAttributeMacro
public ScopeAttributeMacro()
-
-
Method Details
-
setAttributeName
-
setScope
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-
createMacroName
- Specified by:
createMacroName
in classAbstractMacro
-
getMacroValue
- Specified by:
getMacroValue
in classAbstractMacro
-