public class AdaptToTag
extends javax.servlet.jsp.tagext.TagSupport
Constructor and Description |
---|
AdaptToTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
org.apache.sling.api.adapter.Adaptable |
getAdaptable()
Get the adaptable object to be adapted.
|
String |
getAdaptTo()
Gets the class name to adapt the adaptable to.
|
protected ClassLoader |
getClassLoader()
Method for retrieving the classloader from the OSGi console.
|
String |
getVar()
Gets the variable name to save the resulting object to.
|
void |
setAdaptable(org.apache.sling.api.adapter.Adaptable adaptable)
Sets the adaptable object to be adapted.
|
void |
setAdaptTo(String adaptTo)
Sets the class name to adapt the adaptable to.
|
void |
setVar(String var)
Gets the variable name to save the resulting object to.
|
public int doEndTag()
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
public org.apache.sling.api.adapter.Adaptable getAdaptable()
public String getAdaptTo()
protected ClassLoader getClassLoader()
public String getVar()
public void setAdaptable(org.apache.sling.api.adapter.Adaptable adaptable)
adaptable
- the object to adaptpublic void setAdaptTo(String adaptTo)
adaptTo
- the class to adapt topublic void setVar(String var)
var
- the variable nameCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.