@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface PreDestroy
无效的 <法> (invocationcontext) 法>
对象 <方法> (invocationcontext)抛出异常 方法>
注:一个predestroy拦截方法不能把应用程序异常,但它可能会宣布抛出检查异常包括java。lang.exception如果同样的拦截方法设置业务或超时的方法除了生命周期事件。如果一个predestroy拦截方法返回一个值,它是由容器忽略。
<方法> () 方法>
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.