站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

IntroductionAdvisor (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.aop
Interface IntroductionAdvisor

All Superinterfaces:
Advisor, IntroductionInfo
All Known Implementing Classes:
DeclareParentsAdvisor, DefaultIntroductionAdvisor

public interface IntroductionAdvisor
extends Advisor, IntroductionInfo

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.04.2003
Author:
Rod Johnson
See Also:
IntroductionInterceptor

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

Method Detail

getClassFilter

ClassFilter getClassFilter()
Return the filter determining which target classes this introduction should apply to.

This represents the class part of a pointcut. Note that method matching doesn't make sense to introductions.

Returns:
the class filter

validateInterfaces

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

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

The Spring Framework

Copyright © 2002-2007 The Spring Framework.