Class TagProxy<T extends javax.servlet.jsp.tagext.Tag>
- java.lang.Object
-
- org.shredzone.commons.taglib.proxy.AbstractTagProxy<T>
-
- org.shredzone.commons.taglib.proxy.TagProxy<T>
-
- Type Parameters:
T
- Type of theTag
this proxy delegates to
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
,ProxiedTag<T>
- Direct Known Subclasses:
IterationTagProxy
public abstract class TagProxy<T extends javax.servlet.jsp.tagext.Tag> extends AbstractTagProxy<T> implements javax.servlet.jsp.tagext.Tag
A proxy that implementsTag
and allows the target implementation to use dependency injection.- Author:
- Richard "Shred" Körber
-
-
Field Summary
-
Fields inherited from class org.shredzone.commons.taglib.proxy.AbstractTagProxy
TAGPROXY_BEANFACTORY_CACHE
-
-
Constructor Summary
Constructors Constructor Description TagProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doCatch(Throwable t)
HandlesTryCatchFinally
implementations.int
doEndTag()
void
doFinally()
HandlesTryCatchFinally
implementations.int
doStartTag()
javax.servlet.jsp.tagext.Tag
getParent()
void
release()
void
setPageContext(javax.servlet.jsp.PageContext pageContext)
void
setParent(javax.servlet.jsp.tagext.Tag t)
-
Methods inherited from class org.shredzone.commons.taglib.proxy.AbstractTagProxy
getBeanFactory, getBeanName, getTargetBean, initTargetBean
-
-
-
-
Constructor Detail
-
TagProxy
public TagProxy()
-
-
Method Detail
-
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
- Specified by:
setPageContext
in interfacejavax.servlet.jsp.tagext.Tag
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
-
getParent
public javax.servlet.jsp.tagext.Tag getParent()
- Specified by:
getParent
in interfacejavax.servlet.jsp.tagext.Tag
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
-
setParent
public void setParent(javax.servlet.jsp.tagext.Tag t)
- Specified by:
setParent
in interfacejavax.servlet.jsp.tagext.Tag
-
doCatch
public void doCatch(@Nonnull Throwable t) throws Throwable
HandlesTryCatchFinally
implementations.- Parameters:
t
- Caught exception- Throws:
Throwable
-
doFinally
public void doFinally()
HandlesTryCatchFinally
implementations.
-
-