Lifecycle Callbacks - mareknovotny/seam-migration GitHub Wiki
Seam 2 supports standard @PostConstruct and @PreDestroy annotations
for designating post-initialization and pre-destruction callbacks.
Besides, Seam-specific alternatives (@Create and @Destroy) with
identical semantics are supported.
CDI only supports the standard annotations. If you are using the Seam-specific ones in a legacy application, the easiest solution is to replace them with the standard ones.
Besides, CDI provides richer initialization facilities such as:
-
dependency injection using the bean constructor (which allow for using dependency injection in immutable objects)
-
dependency injection using initializer methods
See the CDI specification for more details.