package pt.iscte.ci.aop; import net.sourceforge.fenixedu.domain.DeletedObject; import net.sourceforge.fenixedu.domain.DomainObject; public aspect RegisterDeletedObjectAspect { before(final DomainObject domainObject) : execution(* net.sourceforge.fenixedu.domain.DomainObject+.delete()) && target(domainObject) { if (domainObject.isToRegisterDeletedObject()) { new DeletedObject(domainObject); } } }