Explain the Weaving process in Spring framework?

Explain the Weaving process in Spring framework?

Weaving is the process of applying aspects to a to a target object to create a new proxied object. The aspects are woven into the target object at the specified joinpoints. The weaving can take place at several points in the target class's lifetime:
  * Compile time : Aspects are woven in when the target class is compiled. This requires a special compiler.
  * Classload time : Aspects are woven at the time of loading of the target class into the JVM. It is done by ClassLoader that enhances that target class's bytecode before the class is introduced into the application.
  * Runtime : Sometimes aspects are woven in during the execution of the applicaion. 

By:Jalees
Date:2002-02-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Spring sub Links

Spring sub interview questions and answers for experienced and fresher