1. /*
  2. * Copyright 2002-2004 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. package org.springframework.aop;
  17. import org.aopalliance.intercept.MethodInterceptor;
  18. /**
  19. * Subinterface of AOP Alliance MethodInterceptor that allows additional interfaces
  20. * to be implemented by the interceptor, and available via a proxy using that
  21. * interceptor. This is a fundamental AOP concept called <b>introduction</b>.
  22. *
  23. * <p>Introductions are often <b>mixins</b>, enabling the building of composite
  24. * objects that can achieve many of the goals of multiple inheritance in Java.
  25. *
  26. * @author Rod Johnson
  27. * @version $Id: IntroductionInterceptor.java,v 1.4 2004/03/18 02:46:07 trisberg Exp $
  28. */
  29. public interface IntroductionInterceptor extends MethodInterceptor {
  30. /**
  31. * Does this IntroductionInterceptor implement the given interface?
  32. * @param intf interface to check
  33. */
  34. boolean implementsInterface(Class intf);
  35. }