Please read Spring manual, chapter 10.8, in order to learn how to use full AspectJ via load-time weaving from within Spring. LTW works for non-Spring classes as well because it does not rely on dynamic proxies as simple Spring AOP does. -- Alexander Kriegisch http://scrum-master.de
> Am 25.08.2015 um 15:36 schrieb Rallavagu <rallav...@gmail.com>: > > All, > > Is it possible to define Aspect classes that would work on non spring beans? > Meaning, that are not defined or managed as spring beans. I could make it > working only with spring defined beans. For example, following definition > works as it is a spring bean. > > @Before("execution(* com.sample.service.MyLocalService.getName(..))") > > However, following does not work as it is defined on a Util class that is not > managed by spring as a bean. > > @Before("execution(* com.sample.common.AuthUtil.isAllowed(..))") > > I am trying to understand the behavior as I am trying to write some aspect > classes to work on spring, hibernate and/or jdk classes. > > Thanks in advance > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/aspectj-users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/aspectj-users