[jboss-user] [JBoss AOP] - Re: Field visibility and aspect

2008-10-27 Thread mane81
Yes, as soon as possible. I forget to mention that this behaviour happens with jboss-aop-2.0.0.GA. Using jboss-aop_1.5.6.GA it's all okay (apart from other problems using hotswap and the javaassist library bundled with this version :) ) View the original post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss AOP] - Field visibility and aspect

2008-10-24 Thread mane81
Hi, if I have a class with an enclosed class like this Class POJO { private String aField; ... class AnotherClass { public void someMethod() { aField = "something"; } } } and I add an aspect at runtime through these instructions: AdviceBinding binding = new AdviceBinding("execution(publi

[jboss-user] [JBoss AOP] - Re: Dynamic AOP

2008-10-23 Thread mane81
I tried to simulate the situation described with this simple example: the classes in filesystem are: DynamicAOP/bin/AspectCreator.class DynamicAOP/bin/AspectCreator$MyThread.class DynamicAOP/bin/Caller.class DynamicAOP/SimpleAspect.class The classpath points to DynamicAOP/bin/ so that SimpleAs

[jboss-user] [JBoss AOP] - Dynamic AOP

2008-10-23 Thread mane81
I have some questions: 1) if I want to prepare some classes for dynamic aop I have to put the @prepare ("all(this)") annotation in all classes or putting it in the main class is enough? 2) I need a facility like the hot deployment of JBoss where if an aspect is inserted in a specified director

[jboss-user] [JBoss AOP] - Re: Dynamic AOP - AspectManager.instance().addBinding() bloc

2008-10-22 Thread mane81
Now I'm using jboss-aop-2.0.0.GA and running the application with run-load15HotSwap.sh. I've this exception: java.lang.NullPointerException at org.jboss.aop.pointcut.MethodMatcher.(MethodMatcher.java:72) at org.jboss.aop.pointcut.ExecutionMethodMatcher.(ExecutionMethodMatcher.java

[jboss-user] [JBoss AOP] - Re: Dynamic AOP - AspectManager.instance().addBinding() bloc

2008-10-22 Thread mane81
I tried to reproduce the situation when AspectManager.addBinding(); blocks and I found the same problem: *** Caller.class *** import org.jboss.aop.Prepare; @Prepare("all(this)") public class Caller { private AspectCreator ac; public Caller() { System.out.

[jboss-user] [JBoss AOP] - Dynamic AOP - AspectManager.instance().addBinding() blocks

2008-10-22 Thread mane81
Hi, In my app I need to deploy aspects received from the network at runtime... I'm trying to use hot deploy facilites of jboss-aop but something goes wrong. Here it is a snippet of my code: AdviceBinding binding = null; try { binding = new AdviceBinding("exec