Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.462 kb
// Copyright (c) 2006 Dustin Sallings <dustin@spy.net>
package net.spy.photo.aspects;
import net.spy.db.AbstractSavable;
/**
* Mark savables as modified after a mutator is called.
*/
public aspect SavableModifierAspect {
pointcut mutating(AbstractSavable s):
target(s)
&& (execution(public void AbstractSavable+.set*(*))
|| execution(public void AbstractSavable+.add*(*)));
after(AbstractSavable s) returning: mutating(s) {
s.modify();
}
}
Jump to Line
Something went wrong with that request. Please try again.