org.tinygroup.jspengine.runtime
接口 ResourceInjector


public interface ResourceInjector

Interface for injecting injectable resources into tag handler instances.

作者:
Jan Luehe

方法摘要
 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.
 

方法详细信息

setContext

void setContext(javax.servlet.ServletContext servletContext)
Associates this ResourceInjector with the component environment of the given servlet context.

参数:
servletContext - The servlet context

inject

void inject(javax.servlet.jsp.tagext.JspTag handler)
            throws Exception
Injects the injectable resources from the component environment associated with this ResourceInjector into the given tag handler instance.

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
抛出:
Exception - if an error occurs during injection

preDestroy

void preDestroy(javax.servlet.jsp.tagext.JspTag handler)
Invokes any @PreDestroy methods defined on the instance's class (and super-classes).

参数:
handler - The tag handler instance whose @PreDestroy methods to call


Copyright © 2006–2014 开源组织. All rights reserved.