org.springframework.aop
Interface IntroductionAdvisor

All Superinterfaces:
Advisor
All Known Implementing Classes:
DefaultIntroductionAdvisor

public interface IntroductionAdvisor
extends Advisor

Superinterface for advisors that perform one or more AOP introductions.

This interface cannot be implemented directly; subinterfaces must provide the advice type implementing the introduction.

Introduction is the implementation of additional interfaces (not implemented by a target) via AOP advice.

Since:
04-Apr-2003
Version:
$Id: IntroductionAdvisor.java,v 1.4 2004/04/01 15:35:45 jhoeller Exp $
Author:
Rod Johnson
See Also:
IntroductionInterceptor

Method Summary
 ClassFilter getClassFilter()
          Return the filter determining which target classes this introduction should apply to.
 java.lang.Class[] getInterfaces()
          Return the additional interfaces introduced by this Advisor.
 void validateInterfaces()
          Can the advised interfaces be implemented by the introduction advice?
 
Methods inherited from interface org.springframework.aop.Advisor
getAdvice, isPerInstance
 

Method Detail

getClassFilter

public ClassFilter getClassFilter()
Return the filter determining which target classes this introduction should apply to. The class part of a pointcut. Note that method matching doesn't make sense to introductions.


getInterfaces

public java.lang.Class[] getInterfaces()
Return the additional interfaces introduced by this Advisor.


validateInterfaces

public void validateInterfaces()
                        throws java.lang.IllegalArgumentException
Can the advised interfaces be implemented by the introduction advice? Invoked before adding an IntroductionAdvisor.

Throws:
java.lang.IllegalArgumentException - if the advised interfaces can't be implemented by the introduction advice.


Copyright (C) 2003-2004 The Spring Framework Project.