There are still two points to clarify here.
The first one in my post is actually the binding time of the time, which does not work during weaving
From this link
Boot time (LTW) is just a binary weave, delayed until the class loader loads the class file and defines the class for the JVM. To support this, one or more “weaving class loaders” are required, either explicitly provided by the runtime environment or enabled by the “weaving agent”.
The second is weaving compilation time
Time compilation is the easiest approach. When you have the source code for the application, ajc will compile from the source and create intertwined class files as output. Calling a weaver is an integral part of the ajc compilation process. Aspects themselves can be in source or binary form. If these aspects are necessary to compile the affected classes, you must interweave at compile time. Aspects are required, for example, when they add members to a class and other compiled classes refer to added elements.
source share