Weaving: Weaving basically means processing aspect and non-aspect components of a program in order to produce the desired output. There are different strategies among AOP systems about how to produce the woven code. The main weaving strategies can be divided into compile-time weaving (static weaving and run-time weaving (dynamic weaving). Compile-time weaving involves using a preprocessor to generate woven Java byte code. Run-time weaving on the other hand is the process of weaving and unweaving aspects while the application is running. The main issue in the weaving process is to produce executable code which cannot be distinguished from an ordinary program from the perspective of the underlying interpreter ensure compatibility.
AspectJ Approach: AspectJ [12] is an AOP approach using Java. It is one of the many available approaches for implementing aspect oriented programming paradigm. AspectJ fundamentally does not permit advices to characterize special cases that are not characterized in joinpoints. The kind of the special case should additionally be characterized in the signature of the joinpoint. Even however this forces a constraint on the application code since it must be mindful of
the exemptions tossed by the angle, unchecked special cases (e.g. a Runtime exception) can even now be tossed. While this methodology permits the application code to continue as before, there are no different intends to interface with the guest of a guidance by tossing exemptions
There is still a dialect develop called advantaged angle [name] {...} in AspectJ[11]. A typical viewpoint essentially can't read or compose private and secured fields. Anyhow the alleged special angles are permitted to do this. This peculiarity could be utilized as an intends to get to application code internals to connect with. Anyhow this gimmick must be utilized warily since it may degenerate the ordinary conduct of the project. AspectJ additionally takes into consideration
pronouncing warnings and slips that might be raised at gather time at whatever point a given pointcut outflow is matched by the system. This might be utilized to get informed when the system characterizes undesirable code components.