@mishra Interceptors can have basically three access levels. 1. Application ie with ejb-jar file This are called default interceptors. The affect all classes with their methods. Can only be specify in DD. But Classes and method can be configured to ignore it.
2. The next is Class interceptor, yap, once declared it is applicable to all the class methods, again except it is ignored using dependency injector or DD.
3. Method level, apply to the method in which it is applied.
Also not the the transition is addictive, ie if interceptors are applied to the application(default), ame for all class methods. Check the spec for more details. Hope it helps.
Originally posted by gaurav singhal: Thanks for a good piece of information can you pllease tell the syntax for class scope Interceptor and method scope Interceptor
You would normally use @Interceptors(...) annotation just before the class or the method.You can also achieve this using xml dd.
In the above (...) ... is a single argument which specifies the interceptor class.So it can be myInterceptor.class.
Post by:autobot
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, the permaculture playing cards