Ques 41. What are the different types of bean injections?
There are two types of bean injections.
1. By setter
2. By constructor
Is it helpful?
Add CommentView Comments
Ques 42. What are different types of Autowire types?
There are four different types by which autowiring can be done.
► byName
► byType
► constructor
► autodetect
Is it helpful?
Add CommentView Comments
Ques 43. What is an Aspect?
An aspect is the cross-cutting functionality that you are implementing. It is the aspect of your application you are modularizing. An example of an aspect is logging. Logging is something that is required throughout an application. However, because applications tend to be broken down into layers based on functionality, reusing a logging module through inheritance does not make sense. However, you can create a logging aspect and apply it throughout your application using AOP.
Is it helpful?
Add CommentView Comments
Ques 44. What is a Jointpoint?
A joinpoint is a point in the execution of the application where an aspect can be plugged in. This point could be a method being called, an exception being thrown, or even a field being modified. These are the points where your aspect's code can be inserted into the normal flow of your application to add new behavior.
Is it helpful?
Add CommentView Comments
Ques 45. What is an Advice?
Advice is the implementation of an aspect. It is something like telling your application of a new behavior. Generally, and advice is inserted into an application at joinpoints.