Class ComponentDirective
java.lang.Object
org.apache.velocity.runtime.directive.Directive
org.apache.struts2.views.velocity.components.AbstractDirective
org.apache.struts2.views.velocity.components.ComponentDirective
- All Implemented Interfaces:
Cloneable
,org.apache.velocity.runtime.directive.DirectiveConstants
- See Also:
-
Field Summary
Fields inherited from class org.apache.velocity.runtime.directive.Directive
log, rsvc
Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants
BLOCK, LINE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Component
getBean
(ValueStack stack, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) int
getType()
Methods inherited from class org.apache.struts2.views.velocity.components.AbstractDirective
createPropertyMap, getName, putProperty, render
Methods inherited from class org.apache.velocity.runtime.directive.Directive
checkArgs, getColumn, getLine, getScopeName, getTemplate, getTemplateName, init, isScopeProvided, makeScope, postRender, preRender, setLocation, setLocation
-
Constructor Details
-
ComponentDirective
public ComponentDirective()
-
-
Method Details
-
getBean
protected Component getBean(ValueStack stack, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) - Specified by:
getBean
in classAbstractDirective
-
getBeanName
- Specified by:
getBeanName
in classAbstractDirective
-
getType
public int getType()- Overrides:
getType
in classAbstractDirective
- Returns:
- All components, unless otherwise stated, are LINE-level directives.
-