How will you create Introductions in Spring?

How will you create Introductions in Spring?

The Introductions are little different from Spring advice. Advice are woven at different jointpoints surrounding a method invocation. Introductions affect an entire class by adding new methods and attributes to the adviced class.
Introductions allow you to build composite objects dynamically, affording you the same benefits as multiple inheritance.
Introductions are implemented through IntroductionMethodInterceptor, a subinterface of MethodInterceptor. This method adds one method:
  boolean implementsInterface(Class intf);
This method returns true if the IntroductionMethodInterceptor is responsible for implementing the given interface.

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