01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: * Interface supplying the information necessary to describe an introduction.
21: *
22: * <p>{@link IntroductionAdvisor IntroductionAdvisors} must implement this
23: * interface. If an {@link org.aopalliance.aop.Advice} implements this,
24: * it may be used as an introduction without an {@link IntroductionAdvisor}.
25: * In this case, the advice is self-describing, providing not only the
26: * necessary behavior, but describing the interfaces it introduces.
27: *
28: * @author Rod Johnson
29: * @since 1.1.1
30: */
31: public interface IntroductionInfo {
32:
33: /**
34: * Return the additional interfaces introduced by this Advisor or Advice.
35: * @return the introduced interfaces
36: */
37: Class[] getInterfaces();
38:
39: }
|