Database Reference
In-Depth Information
Now you can also use the methods provided by the NodeBacked interface at ht-
tp://docs.spring.io/spring-data/neo4j/docs/current/api/org/springframework/data/neo4j/as-
pects/core/class-use/NodeBacked.html .
AspectJ performs the byte code instrumentation in three different modes:
Compile-time weaving : Instrumentation is performed at compile time itself using
AspectJ compiler ( AJC )
Load-time weaving : Instrumentation is performed as the classes are loaded in
memory
Run-time weaving : Instrumentation is performed when the objects are created in
memory
As of now, Spring Data only supports compile-time weaving, which means all classes
should be compiled with the AJC.
In this section, we explored the advanced mapping mode of Spring Data Neo4j entities us-
ing ApsectJ. We also enhanced our examples and enabled the aspects in our examples by
introducing AJC in our build process and further used the modified libraries / classes in
our example.
Search WWH ::




Custom Search