@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface PostConstruct
void <METHOD>(InvocationContext)
Object <METHOD>(InvocationContext)抛出异常
注意:PostConstruct拦截器方法不能抛出应用程序异常,但是除了生命周期事件之外,如果相同的拦截器方法在业务或超时方法上插入,则可以将其声明为抛出检查的异常,包括java.lang.Exception。 如果PostConstruct拦截器方法返回值,容器将被忽略。
void <METHOD>()
PreDestroy
, 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.