[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
Strange, I am pretty sure there was a way to turn this off last time I checked (months ago), but it does not appear to be there now unless I am missing something very obvious. In any case, I have added a fix to cvs, to allow you to specify an optimize property on the aopc task. Set it to false to turn off optimizations, i.e.: | aopc compilerclasspathref=classpath classpathref=classpath verbose=true optimize=false | classpath path=./ | src path=./ | aoppath path=jboss-aop.xml/ | /aopc | The optimize attribute defaults to true if not specified. If you are not familiar with building from cvs, the following thread contains details (it spans over a few pages): http://www.jboss.org/index.html?module=bbop=viewtopict=52857 HTH View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855316#3855316 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855316 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
It works. Thanks. [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855452#3855452 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855452 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
Specify the jboss.aop.optimized system property and set it to false, i.e: | aopc compilerclasspathref=classpath classpathref=classpath verbose=true | sysproperty key=jboss.aop.optimized value=true/ | | classpath path=./bin/ | src path=./bin/ | aoppath path=jboss-aop.xml/ | /aopc | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855169#3855169 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855169 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
the following error message occure: [aopc] BUILD FAILED: The task doesn't support the nested sysproperty element. [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855289#3855289 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855289 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
hi, could you tell me how to turn JBOSS AOP optimization off in the build.xml of ant? |target name=compile depends=prepare | javac srcdir=. | destdir=./bin | debug=on | deprecation=off | optimize=off | includes=** | classpath refid=classpath/ | /javac | aopc compilerclasspathref=classpath classpathref=classpath verbose=true | classpath path=./bin/ | src path=./bin/ | aoppath path=jboss-aop.xml/ | /aopc |/target | [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855138#3855138 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855138 --- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
It should be possible to change method arguments at call joinpoints. Your example works with the call joinpoint if you turn optimization off (-Djboss.aop.optimized=false). Cheers, Francisco View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854990#3854990 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854990 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
Looks like there's a bug in optimized CallBy invocations? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854991#3854991 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854991 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
Yes. Francisco View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854994#3854994 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854994 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
Hi It works. You must use execution joinpoint instead. It won't work with call joinpoint as it doesn't make sense. Even if it works with AspectJ, when I think about call type it looks strange to change called method's arguments from caller context. Is there some special reason you can't use execution joinpoint? So your code should use MethodInvocation class instead, and binding should be bind poincut=execution(void i$instanceof{SomeInterface}-someMethod()) :) Tomasz Nazar View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854748#3854748 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854748 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: how to change the arguments of a method by AOP?
hi, what i really want to do is try to change the arguments of method for a system class by interceptor. so i can only use the call joinpoint. it is possible to get the argument of the caller, but i do not know how to set (change) the argument of the callee. [EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3854792#3854792 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854792 --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development