import org.jboss.aop.MethodInvocation;

...

MethodInvocation methodInvocation = (MethodInvocation)invocation;
Method m = methodInvocation.method;
Object[] args = methodInvocation.arguments;

...

FieldReadInvocation fri = (FieldReadInvocation)invocation;
Field f = fri.field;

...

FieldWriteInvocation fwi = (FieldWriteInvocation)invocation;
Field f = fwi.field;
Object value = fwi.value;

...

Sorry for the poor documentation.

Bill

[EMAIL PROTECTED] wrote:

Hi all,

I have been playing around with JBoss AOP framework.

I encountered the following problem when trying to get the 'On Java' code running:

Method method = MethodInvocation.getMethod(invocation);

It seems there is no static method 'getMethod()' in the MethodInvocation class.

Is this changed? And how should I alter the example to get the code running?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-- ================ Bill Burke Chief Architect JBoss Group LLC. ================



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to