MCQs
To inject a Spring bean into domain objects created outside Spring, you need the help of AOP.
AspectJ compile-time weaving is done through a special AspectJ compiler called ajc.
If you would like to perform logging only when a join point returns, you should replace the after advice with an after returning advice.
AspectJ supports five types of advice annotations: @Before, @After, @AfterReturning, @AfterThrowing, and @Around.
BeanShell is a lightweight Java scripting language that can dynamically execute Java code fragments while supporting scripting features like those of other scripting languages.
You can omit the package name if the target class or interface is located in the same package as this aspect.
You can specify the property values for a scripting bean in the lang:property elements.
In this aspect, you can declare an introduction by annotating an arbitrary field with the @DeclareParents annotation.