Hi

I would like to get access to an aspect from a java class so that I can set some of its fields.

I have tried the following form but Eclipse gives the error "TestAspect cannot be resolved".

Class G{

        public void setAspectField(){
                TestAspect.aspectOf().x = 0;
        }

}

aspect TestAspect{
        public int x;
}


Also is there some way to define a pointcut in an normal class and then pass it to an aspect to use for some predefined advice.

Thank you for your help

Piers
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to