Database Reference
In-Depth Information
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.