Package org.glassfish.jsp.api
Interface ResourceInjector
-
public interface ResourceInjectorInterface for injecting injectable resources into tag handler instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends javax.servlet.jsp.tagext.JspTag>
TcreateTagHandlerInstance(java.lang.Class<T> clazz)Instantiates and injects the given tag handler class.voidpreDestroy(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.ExceptionInstantiates 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
-
-