Interface ResourceInjector


public interface ResourceInjector
Interface for injecting injectable resources into tag handler instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends javax.servlet.jsp.tagext.JspTag>
    T
    Instantiates and injects the given tag handler class.
    void
    preDestroy(javax.servlet.jsp.tagext.JspTag handler)
    Invokes any @PreDestroy methods defined on the instance's class (and super-classes).
  • Method Details

    • createTagHandlerInstance

      <T extends javax.servlet.jsp.tagext.JspTag> T createTagHandlerInstance(Class<T> clazz) throws Exception
      Instantiates and injects the given tag handler class.
      Parameters:
      clazz - the tag handler class to be instantiated and injected
      Throws:
      Exception - if an error has occurred during instantiation or injection
    • preDestroy

      void preDestroy(javax.servlet.jsp.tagext.JspTag handler)
      Invokes any @PreDestroy methods defined on the instance's class (and super-classes).
      Parameters:
      handler - The tag handler instance whose @PreDestroy methods to call