• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in spec?

 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB3 core:

12.8.1 Specification of Interceptors
The interceptor deployment descriptor element is used to specify the interceptor methods of an
interceptor class. The interceptor methods are specified by using the around-invoke, pre-construct,
post-destroy, pre-passivate, and post-activate elements.

 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the interceptors may define pre-destroy and post-construct callbacks, it is correct. You can also do it with annotations.
 
Jonathan Elkharrat
Ranch Hand
Posts: 170
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i know that. even the bean can do that.
but the spec says "pre-construct" (instead of post-construct)
and post-destroy (that's also nonsense, there's nothing to do after the bean is destroyed)
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, didn't notice this. Looks wrong indeed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic