• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!