Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] How do define the pointcut dynamicly

Hi, all,

I create a pointcut like this:
public  aspect TestAspect{
   pointcut operation : call (* MyClass.*(..));
}

I want to write a ini file to record the pointcut scope, in this example is "* MyClass.*(..)".
The ini file maybe like this:
* MyClass.*(..)

and later I change it to:
public  MyClass.*(..)

I think if I can bind the pointcut dynamiclly, we needn't change the source file.
I wonder whether AspectJ can provide this ability?

Thank you.
Alexander


Back to the top