[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
Is it possible to apply a point cut to an entire branch of packages, like for example pointcut=... and within(java.*) for all class in package java and the subpackages aso. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3874280#3874280 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3874280 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
yes it works, for the story, it was just a space beetwen String and [ that was the cause of the error, but if there is no space it works perfectly. maybe something to say in the doc. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873700#3873700 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873700 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
well, it may be some malfunction with eclipse, now i can do the interception. it works fine, but i still got a question, is it possible to intercept public static void main(String [] args), for the moment by me it appears as it doesn't work. I'd like to do that to initialize some variables at the start of application. Thanks all. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873549#3873549 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873549 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
Does the constructor tutorial work for you? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873518#3873518 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873518 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
like the other one, it doens't work for the first tries, but now it works fine. So for the moment i dont have other question about aop, but it may come when i may try the hot deployment. See you later. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873558#3873558 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873558 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
lol, a question sooner than expected. how do i write pointcut expression for tables arguments?? for example for the function main(String [] args) java.lang.String [] isn't accepted View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873572#3873572 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873572 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
It should work if you do | execution(public static void blah.MyClass-main(java.lang.String[]) | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873573#3873573 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873573 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
well, i tried many things, but for the moment i can't intercept a constructor call. | public class HelloAOP { | public void callMe () { | System.out.println(AOP); | } | /** | * | */ | public static void main (String args[] ) { | new HelloAOP().callMe(); | } | } | jboss-aop.xml file ?xml version=1.0 encoding=UTF-8 standalone=yes? | aop | !--aspect class=IOExceptionInjector scope=PER_VM/ | bind pointcut=call(* $instanceof{java.io.BufferedReader}-readLine()) AND within(HelloAOP) | advice name=throwIO aspect=IOExceptionInjector/ | interceptor class=HelloAOPInterceptor/ | /bind-- | bind pointcut=call(*-new(..)) | interceptor class=HelloAOPInterceptor/ | /bind | /aop | import org.jboss.aop.advice.Interceptor; | import org.jboss.aop.joinpoint.Invocation; | | public class HelloAOPInterceptor implements Interceptor { | | public String getName() { | | return HelloAOPInterceptor; | } | | | public Object invoke(Invocation invocation) throws Throwable { | System.out.println(Hello, ); | return invocation.invokeNext(); | } | } | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873413#3873413 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873413 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
Well i'll add more to my request. What i'd like to do is replace call of new Date(); with my own call of new Date(), that is a Date that is speed up. Is that realistic?? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873231#3873231 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873231 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Design of AOP on JBoss (Aspects/JBoss)] - Re: [testing with AOP]
A constructor caller pointcut could help, the question is if the overhead of this is worth the performance increase of your Date class. Please take a look at the tutorial that comes with the AOP distribution :-) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3873237#3873237 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873237 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development