[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - tag

2004-11-07 Thread ad-rocha
Hi, I would like to have a general configuration file in my program (config.xml). So, I would like to put the aop tag inside this file (it contains orther tags) and use it to weave... is it possible? I'm receiving the error: java.lang.RuntimeException: java.lang.IllegalArgumentException: Unkno

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Intercept invoke(Object, Object[])

2004-11-04 Thread ad-rocha
Thanks Kabir, It's working now! Andre View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853948#3853948 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853948 --- This

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Intercept invoke(Object, Object[])

2004-11-04 Thread ad-rocha
Hi, I'd like to intercept all calls to java.lang.reflect.Method->invoke(Object, Object[]) inside method junit.framework.TestCase->runTest() made from classes that extends junit.framework.TestCase. I'm using runtime weaving via xml and created the class: public class TestCaseInterceptor extends

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-03 Thread ad-rocha
Thanks for your attention Bill, AspectJ sintax is something like this: public aspect Inheritance { | declare parents: (junit.framework.TestCase+ && !junit.framework.TestCase && !test.CustomTestCase) extends test.CustomTestCase; | } that means "classes that extends TestCase and not equals

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-11-03 Thread ad-rocha
Bill, In my opinion the sintax is ok (very useful to me!). My question is: "MySuperClass must extend the class MyTestCase extends" is a JBoss AOP limitation or just a implementation choice? Andre View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853784#3853784

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-10-30 Thread ad-rocha
Hi Kabir, I'm migrating from AspectJ to JBoss AOP and my implementation use this approach. I have some test cases implemented using JUnit, so these classes (Test1, Test2) extends TestCase. I've created a new class (MyTestCase) that extends and modify TestCase default implementation, adding new

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Introduction

2004-10-30 Thread ad-rocha
Hi Kabir, I have 3 classe (A, B and C). B extends A and C extends A. I'd like to make C extends B... Is there a way to do it using JBoos AOP? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853378#3853378 Reply to the post : http://www.jboss

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Introduction

2004-10-29 Thread ad-rocha
Hi, Can I force a class to extend other? somethig like: | test.MySuperClass | And how about introduce a field? is it possible? Thanks, AndrÃÂ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853313#3853313 Reply to the post : http://www.jboss.org/i

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread ad-rocha
Hum... thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853302#3853302 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853302 --- This Newsletter Sponsored by:

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread ad-rocha
Thanks Bill, it's working now. But why have I to referece the aspect if the advice tag define the aspect class? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853295#3853295 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=r

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Why it's not working?

2004-10-29 Thread ad-rocha
Sorry... the correct method name in MyInstrumentation is instrument, not invoke View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853290#3853290 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853290 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Why it's not working?

2004-10-29 Thread ad-rocha
Hi, I'm starting to work wih JBoss AOP... I' have two aspects: package aftt.weaving; | | import org.jboss.aop.joinpoint.MethodInvocation; | | public class MyInstrumentation { | | public Object invoke(MethodInvocation invocation) throws Throwable { | Object result = nul

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread ad-rocha
So... declare error and declare warning exist in JBoss AOP? Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852948#3852948 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852948 --

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Declare error

2004-10-27 Thread ad-rocha
With declare error is possible to specify compilation errors for static crosscutting: http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/progguide/semantics-declare.html#d0e6417 Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852917

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Declare error

2004-10-27 Thread ad-rocha
Hi, Has JBoss AOP a construction like Aspectj "declare error"? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852903#3852903 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852903 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-25 Thread ad-rocha
It's working now. Thank you Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852568#3852568 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852568 --- This S

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Still not working (again)... Is there a verbose mode? Is there a way to send to you the files? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852495#3852495 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Thanks, but still not working... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852492#3852492 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852492 --- This SF.net

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
AOP xml: | | | | | Ant: | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jb

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Class: package teste; public class HelloAOP { public void callMe() { System.out.println("AOP!"); } public static void main(String args[]) { new HelloAOP().callMe(); } } Aspect: package teste; import org.jboss.aop.advice.Interceptor; import org.jboss.aop.joinpoint.Invocation; pu

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-24 Thread ad-rocha
Hi, I'm trying the reference guide example, and create a Ant project to do loadtime weaving (I don't want to precompile). It's not working... the result is "AOP!" (not "Hello, AOP!") Any ideas? Thanks, AndrÃ

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
Marshall, The Wizard ONLY works if I open all projects in workspace and restart Eclipse. I don't see any relation between existent projects and the new one... Is it a bug? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852483#3852483 Reply t

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
I receive the same error independent of AFTT project status (opened/closed) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852475#3852475 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852475 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
!SESSION Out 24, 2004 08:58:19.62 -- eclipse.buildId=I200406251208 java.version=1.4.2_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pt_BR !ENTRY org.eclipse.osgi Out 24, 2004 08:58:19.62 !MESSAGE An error occ

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: JBossAOP installation under Eclipse

2004-10-24 Thread ad-rocha
!SESSION Out 24, 2004 08:58:19.62 -- eclipse.buildId=I200406251208 java.version=1.4.2_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pt_BR !ENTRY org.eclipse.osgi Out 24, 2004 08:58:19.62 !MESSAGE An error occ

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Re: Online weaving Ant task

2004-10-23 Thread ad-rocha
Sorry... not aspectwerks.bat I'm looking for a Ant task to make Loadtime instrumentation. Precompiled instrumentation is shown in: http://docs.jboss.org/aop/aspect-framework/reference/en/html/compiling.html But there is no information about Loadtime... Thanks, AndrÃÂ View the original post :

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - Online weaving Ant task

2004-10-23 Thread ad-rocha
Hi, Is there a Ant task to perform online weaving (like aspectwerks.bat) ? Thanks, Andrà View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852446#3852446 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852446 -

[JBoss-dev] [AOP on JBoss (Aspects/JBoss)] - JBossAOP installation under Eclipse

2004-10-23 Thread ad-rocha
Hi, I'm using Eclipse 3.0.0 and would like to install JBossAOP standalone (I'm developing a desktop application). I've installed only JBoss-IDE AOP Standalone 1.0 (via 'Software Updates') but now I receive a error when try to create a new JBossAOP project: 'Plug-in org.jboss.ide.eclipse.jdt.ao