org.glassfish.jsp.api
Interface ResourceInjector


public interface ResourceInjector

Interface for injecting injectable resources into tag handler instances.

Author:
Jan Luehe

Method Summary
<T extends javax.servlet.jsp.tagext.JspTag>
T
createTagHandlerInstance(java.lang.Class<T> clazz)
          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 Detail

createTagHandlerInstance

<T extends javax.servlet.jsp.tagext.JspTag> T createTagHandlerInstance(java.lang.Class<T> clazz)
                                                                   throws java.lang.Exception
Instantiates and injects the given tag handler class.

Parameters:
clazz - the tag handler class to be instantiated and injected
Throws:
java.lang.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


Copyright © 2011 GlassFish Community. All Rights Reserved.