[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Pointcut for package protected methods

Title: Pointcut for package protected methods

Hi,

I am trying to define a point but for methods in a particular package which are either protected or package protected (default access).

I can't come up with anything better than this:

    pointcut protectedTxMethods() :
        execution(* com.ericsson.nms.cif.cs.transaction.*.*(..)) &&
        execution(!final * com.ericsson.nms.cif.cs.transaction.*.*(..)) &&
        execution(!private * com.ericsson.nms.cif.cs.transaction.*.*(..));

Is there a better way, or is this the only way to do it???

/David