@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface PreDestroy
void <METHOD>(InvocationContext)
Object <METHOD>(InvocationContext)抛出异常
注意:PreDestroy拦截器方法不能抛出应用程序异常,但是除了生命周期事件之外,如果相同的拦截器方法在业务或超时方法上插入,则可以声明抛出检查的异常,包括java.lang.Exception。 如果PreDestroy拦截器方法返回一个值,容器将被忽略。
void <METHOD>()
PostConstruct
, Resource
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.