Class AbstractTagProxy<T extends javax.servlet.jsp.tagext.JspTag>

  • Type Parameters:
    T - Type of the JspTag this proxy delegates to
    All Implemented Interfaces:
    javax.servlet.jsp.tagext.JspTag, ProxiedTag<T>
    Direct Known Subclasses:
    SimpleTagProxy, TagProxy

    public abstract class AbstractTagProxy<T extends javax.servlet.jsp.tagext.JspTag>
    extends Object
    implements javax.servlet.jsp.tagext.JspTag, ProxiedTag<T>
    An abstract TagProxy implementation that offers all basic methods.
    Author:
    Richard "Shred" Körber
    • Method Detail

      • initTargetBean

        protected void initTargetBean​(@Nonnull
                                      javax.servlet.jsp.JspContext jspContext)
        Creates a new instance of the implementing target bean.
        Parameters:
        jspContext - JspContext
      • getBeanFactory

        @Nonnull
        protected org.springframework.beans.factory.BeanFactory getBeanFactory​(@Nonnull
                                                                               javax.servlet.jsp.JspContext jspContext)
        Gets the BeanFactory from the given JspContext. The default implementation automagically finds a BeanFactory that was previously set by a FrameworkServlet. The result is cached.
        Parameters:
        jspContext - JspContext to be used
        Returns:
        BeanFactory found
      • getTargetBean

        public T getTargetBean()
        Description copied from interface: ProxiedTag
        Returns a reference to the target bean this proxy delegates to.
        Specified by:
        getTargetBean in interface ProxiedTag<T extends javax.servlet.jsp.tagext.JspTag>
        Returns:
        Target bean