OK, thanks, that would explain it.
But if my interceptor can be used for both {{@PostConstruct}} and {{@AroundInvoke}} methods and I need to set it at the type level to make it work for {{@PostConstruct}}, then it will be used for all other methods too ({{@AroundInvoke}})... which is not necessarily what I want to achieve.
So the only solution would be to split the interceptor for {{@PostConstruct}} and {{@AroundInvoke}} in two separate bindings/interceptors... which is not that nice as they will be copied/pasted.
Would it be possible to relax the spec in a future version and allow putting the binding on the {{@PostConstruct}} method? I'm not 100% sure but OpenEJB /OpenWebBeans seems to accept that already.
|