Package org.glassfish.jsp.api
Interface ResourceInjector
-
public interface ResourceInjector
Interface for injecting injectable resources into tag handler instances.- Author:
- Jan Luehe
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends javax.servlet.jsp.tagext.JspTag>
TcreateTagHandlerInstance(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(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
-
-