Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] pertarget instantiation && within

aspect XYZ pertarget(target(SomeClass) && !within(XYZ)) {
  protected SomeClass sm;

  public XYZ() {
    sm = new SomeClass();
  }
}

I would like not to instantiate the XYZ aspect when the object referred by sm is created. What do I do wrong?


Back to the top