Skip to main content

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

Title: João Batalha
Hello

I'm trying to create an aspect that gives an compiler error when this doesn't occur:

- all the classes inside the package K can only be initialized inside a especific class Y or inside the scope of the especific class.


I created this one that gives the error but permits the initialization of any class that is inside the package K be done by any other of that same package
    pointcut ActionsInstancesCreation() : !within(packageK..*) && !within(Class Y) && initialization(packageK..new(..));

Can i do a pointcut to resolve my error?

--

João Batalha

joao.batalha@xxxxxxxxxxxx

+ 351 91 220 20 13


Back to the top