public interface ResourceInjector
Modifier and Type | Method and Description |
---|---|
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.
|
void setContext(javax.servlet.ServletContext servletContext)
servletContext
- The servlet contextvoid inject(javax.servlet.jsp.tagext.JspTag handler) throws 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 injectedException
- if an error occurs during injectionvoid preDestroy(javax.servlet.jsp.tagext.JspTag handler)
handler
- The tag handler instance whose @PreDestroy methods
to callCopyright © 2006–2018 TinyGroup. All rights reserved.