[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] cflow below problem

hi all,
 i have following problem

i have following bean

beanX {

   public void updateStatus() {

   public void getChildrens() {
         MyObject objs = component.getObject();

what i want do do is to intercept the call to component.getOBject() OLNLY when is in the workflow of the call (or the execution)
of updateStatus

i have written the following pointcut (which obviously is not working.)... what am i missing?

pointcut updateStatus() :
     execution(* com.beanX.updateStatus(..));

public pointcut getObject() :
        execution (MyObject com.MyComponent.*(..))
        && !(cflow(updateStatus()));

is there something that i am missing?

thanks and regards