org.glassfish.jsp.api
接口 ResourceInjector


public interface ResourceInjector

Interface for injecting injectable resources into tag handler instances.

作者:
Jan Luehe

方法摘要
<T extends JspTag>
T
createTagHandlerInstance(Class<T> clazz)
          Instantiates and injects the given tag handler class.
 void preDestroy(JspTag handler)
          Invokes any @PreDestroy methods defined on the instance's class (and super-classes).
 

方法详细信息

createTagHandlerInstance

<T extends JspTag> T createTagHandlerInstance(Class<T> clazz)
                                          throws Exception
Instantiates and injects the given tag handler class.

参数:
clazz - the tag handler class to be instantiated and injected
抛出:
Exception - if an error has occurred during instantiation or injection

preDestroy

void preDestroy(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 © 2013. All Rights Reserved.