I've seen this term when read about how Spring works and I've just read the article about JPA implementation performance and it has the next statistics:
EclipseLink 3215 ms (Run-time weaver - Spring ReflectiveLoadTimeWeaver weaver ) EclipseLink (Build-time weaving) 3571 ms EclipseLink (No weaving) 3996 ms
So, could someone explain in plain English, what is weaving?
Thanks!
Weaving is the process of combining warp and weft components to make a woven structure. The components... In weaving, lengthwise yarns are called warp; crosswise yarns are called weft, or filling. Most woven fabrics are made with their outer edges finished in a manner that avoids raveling; these are called selvages.
Weaving is the process of layering yarns or threads crosswise to create continuous lengths of fabric, including patterned weaves and ribbons. Spinning is the process of producing thread from raw fibers. Weaving is the process of transforming threads into cloth.
The process of arranging two sets of yarns together to make a fabric is called weaving.
The development of spinning and weaving began in ancient Egypt around 3400 before Christ (B.C). The tool originally used for weaving was the loom. From 2600 B.C. onwards, silk was spun and woven into silk in China. Later in Roman times the European population was clothed in wool and linen.
Weaving is generating or editing code by directly modifying existing .class (byte-code) files. This can occur at different points in the application life cycle.
Spring Framework uses this for AOP functionality. Eclipselink uses weaving for lazy loading or change tracking.
From here:
In Spring AOP makes it possible to modularize and separate logging, transaction like services and apply them declaratively to the components Hence programmer can focus on specific concerns. Aspects are wired into objects in the spring XML file in the way as JavaBean. This process is known as 'Weaving'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With