1 /* 2 * Copyright 2002-2007 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.springframework.aop; 18 19 /** 20 * Superinterface for advisors that perform one or more AOP <b>introductions</b>. 21 * 22 * <p>This interface cannot be implemented directly; subinterfaces must 23 * provide the advice type implementing the introduction. 24 * 25 * <p>Introduction is the implementation of additional interfaces 26 * (not implemented by a target) via AOP advice. 27 * 28 * @author Rod Johnson 29 * @since 04.04.2003 30 * @see IntroductionInterceptor 31 */ 32 public interface IntroductionAdvisor extends Advisor, IntroductionInfo { 33 34 /** 35 * Return the filter determining which target classes this introduction 36 * should apply to. 37 * <p>This represents the class part of a pointcut. Note that method 38 * matching doesn't make sense to introductions. 39 * @return the class filter 40 */ 41 ClassFilter getClassFilter(); 42 43 /** 44 * Can the advised interfaces be implemented by the introduction advice? 45 * Invoked before adding an IntroductionAdvisor. 46 * @throws IllegalArgumentException if the advised interfaces can't be 47 * implemented by the introduction advice 48 */ 49 void validateInterfaces() throws IllegalArgumentException; 50 51 } 52