41.What is Join point?
This represents a point in your application where you can plug-in AOP aspect. You can also say, it is the actual place in the application where an action will be taken using Spring AOP framework.
42.What is Advice?
This is the actual action to be taken either before or after the method execution. This is actual piece of code that is invoked during program execution by Spring AOP framework.
43.What is Pointcut?
This is a set of one or more joinpoints where an advice should be executed. You can specify pointcuts using expressions or patterns as we will see in our AOP examples.
44.What is Introduction?
An introduction allows you to add new methods or attributes to existing classes.
45.What is Target object?
The object being advised by one or more aspects, this object will always be a proxy object. Also referred to as the advised object.
46.What is Weaving?
Weaving is the process of linking aspects with other application types or objects to create an advised object.
47.What are the different points where weaving can be applied?
Weaving can be done at compile time, load time, or at runtime.
48.What are the types of advice?
Spring aspects can work with five kinds of advice mentioned below:
before: Run advice before the a method execution.
after: Run advice after the a method execution regardless of its outcome.
after-returning: Run advice after the a method execution only if method completes successfully.
after-throwing: Run advice after the a method execution only if method exits by throwing an exception.
around: Run advice before and after the advised method is invoked.
49.What is XML Schema based aspect implementation?
Aspects are implemented using regular classes along with XML based configuration.
50.What is @AspectJ? based aspect implementation?
@AspectJ refers to a style of declaring aspects as regular Java classes annotated with Java 5 annotations.