Class ResourceInjectorImpl

  • All Implemented Interfaces:
    org.glassfish.jsp.api.ResourceInjector

    public class ResourceInjectorImpl
    extends Object
    implements org.glassfish.jsp.api.ResourceInjector
    Implementation of org.glassfish.jsp.api.ResourceInjector
    Author:
    Jan Luehe
    • Constructor Detail

      • ResourceInjectorImpl

        public ResourceInjectorImpl​(WebModule webModule)
    • Method Detail

      • createTagHandlerInstance

        public <T extends jakarta.servlet.jsp.tagext.JspTag> T createTagHandlerInstance​(Class<T> clazz)
                                                                                 throws Exception
        Instantiates and injects the given tag handler class.
        Specified by:
        createTagHandlerInstance in interface org.glassfish.jsp.api.ResourceInjector
        Parameters:
        clazz - the TagHandler class to be instantiated and injected
        Throws:
        Exception - if an error has occurred during instantiation or injection
      • preDestroy

        public void preDestroy​(jakarta.servlet.jsp.tagext.JspTag handler)
        Invokes any @PreDestroy methods defined on the instance's class (and super-classes).
        Specified by:
        preDestroy in interface org.glassfish.jsp.api.ResourceInjector
        Parameters:
        handler - The tag handler instance whose PreDestroy-annotated method to call