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; public class HelloAOPInterceptor implements Interceptor { public String getName() { return "HelloAOPInterceptor"; } public Object invoke(Invocation invocation) throws Throwable { System.out.print("Hello, "); return invocation.invokeNext(); } } AOP xml: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> Ant: View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852489#3852489 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852489 ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development