|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceInjector
Interface for injecting injectable resources into tag handler instances.
| Method Summary | |
|---|---|
void |
inject(javax.servlet.jsp.tagext.JspTag handler)
Injects the injectable resources from the component environment associated with this ResourceInjector into the given tag handler instance. |
void |
preDestroy(javax.servlet.jsp.tagext.JspTag handler)
Invokes any @PreDestroy methods defined on the instance's class (and super-classes). |
void |
setContext(javax.servlet.ServletContext servletContext)
Associates this ResourceInjector with the component environment of the given servlet context. |
| Method Detail |
|---|
void setContext(javax.servlet.ServletContext servletContext)
servletContext - The servlet context
void inject(javax.servlet.jsp.tagext.JspTag handler)
throws java.lang.Exception
Any @PostConstruct methods on the class (and super-classes) of the instance will be invoked after injection.
handler - The tag handler instance to be injected
java.lang.Exception - if an error occurs during injectionvoid preDestroy(javax.servlet.jsp.tagext.JspTag handler)
handler - The tag handler instance whose @PreDestroy methods
to call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||