Package org.craftercms.engine.macro.impl
Class WebAppContextPathMacro
- java.lang.Object
-
- org.craftercms.engine.macro.impl.AbstractMacro
-
- org.craftercms.engine.macro.impl.WebAppContextPathMacro
-
- All Implemented Interfaces:
Macro,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.web.context.ServletContextAware
public class WebAppContextPathMacro extends AbstractMacro implements org.springframework.web.context.ServletContextAware
Represents a {webapp.context.path} macro, which resolves to the web application context path.- Author:
- Alfonso Vásquez
-
-
Field Summary
-
Fields inherited from class org.craftercms.engine.macro.impl.AbstractMacro
macroName
-
-
Constructor Summary
Constructors Constructor Description WebAppContextPathMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateMacroName()protected StringgetMacroValue(String str)voidsetServletContext(javax.servlet.ServletContext servletContext)-
Methods inherited from class org.craftercms.engine.macro.impl.AbstractMacro
afterPropertiesSet, getName, resolve
-
-
-
-
Method Detail
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContextin interfaceorg.springframework.web.context.ServletContextAware
-
createMacroName
protected String createMacroName()
- Specified by:
createMacroNamein classAbstractMacro
-
getMacroValue
protected String getMacroValue(String str)
- Specified by:
getMacroValuein classAbstractMacro
-
-