Example usage for org.springframework.aop IntroductionAdvisor validateInterfaces

List of usage examples for org.springframework.aop IntroductionAdvisor validateInterfaces

Introduction

In this page you can find the example usage for org.springframework.aop IntroductionAdvisor validateInterfaces.

Prototype

void validateInterfaces() throws IllegalArgumentException;

Source Link

Document

Can the advised interfaces be implemented by the introduction advice?

Usage

From source file:org.springframework.aop.framework.AdvisedSupport.java

public void addAdvisor(int pos, IntroductionAdvisor advisor) throws AopConfigException {
    advisor.validateInterfaces();

    // If the advisor passed validation, we can make the change.
    for (int i = 0; i < advisor.getInterfaces().length; i++) {
        addInterface(advisor.getInterfaces()[i]);
    }//from  w  w  w  .  j  av a2  s .  c  o m
    addAdvisorInternal(pos, advisor);
}