[jboss-user] [JBoss AOP] - Re: howto hotswap ?

waffels do-not-reply at jboss.com
Wed Sep 27 10:28:20 EDT 2006


i want to intercept the execution of the method 

    private static void startSend(OutputStream os,File file) throws IOException

so i made the following binding:
        AdviceBinding binding = new AdviceBinding("execution(private static void src.Client->startSend(java.io.OutputStream, java.io.File))", null);
        binding.addInterceptor(ClientSendFileInterceptor.class);
        AdviceBinding binding2 = new AdviceBinding("execution(private * src.Client->startSend(java.io.OutputStream, java.io.File))", null);
        AspectManager.instance().addBinding(binding);

but it won't work, is it possible that eclipse is corrupting things, i've added the VM arguments, i can't see what i'm doing wrong, the interception just doesn't happen...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974548#3974548

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974548



More information about the jboss-user mailing list