On 12/14/05, Christian Essl <[EMAIL PROTECTED]> wrote: > AspectJ modfies the byte-code of your class while Spring-AOP either > creates a proxy or a subclass. This means that ie in Spring-AOP you can > not advice field acess or statements within a method. Basicly with spring > AOP you can only adivce calls to a certain method.
Hello, it's not totally right to say "spring AOP you can only adivce calls to a certain method". Reality is a bit worse: With spring AOP, you can only advice method calls when the calls originate from an instance that is not the instance that holds the method. So : if the method AClass.method1 is adviced with springAOP, and if in a method AClass.method2 you do something like this.method1() then you don't use the proxied instance and springAOP will not work. So with spring AOP, you can't advice private methods, and you can advice (default), protected and public methods as long as you do not call them directly from other methods of the same instance. My 0.02 EUR, -- Laurent ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
