added constructor pointcut exception for the instatiator

This commit is contained in:
Michael Hunger
2010-08-17 19:41:48 +02:00
parent a394361e11
commit 8a9b0072f3

View File

@@ -63,6 +63,9 @@ public aspect Neo4jNodeBacking extends AbstractTypeAnnotatingMixinFields<Graph.E
execution((@Graph.Entity *).new(..)) &&
!execution((@Graph.Entity *).new(Node)) &&
this(entity);
execution((@GraphEntity *).new(..)) &&
!execution((@GraphEntity *).new(Node)) &&
this(entity); // && !cflow(execution(* fromStateInternal(..));
// Create a new node in the Graph if no Node was passed in a constructor