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.context.annotation;
18:
19: /**
20: * Enumerates the various scoped-proxy options.
21: *
22: * <p>For a fuller discussion of exactly what a scoped-proxy is, see that
23: * section of the Spring reference documentation entitled 'Scoped beans as
24: * dependencies'.
25: *
26: * @author Mark Fisher
27: * @since 2.5
28: * @see ScopeMetadata
29: */
30: public enum ScopedProxyMode {
31:
32: /**
33: * Do not create a scoped proxy.
34: * <p>This proxy-mode is not typically useful when used with a
35: * non-singleton scoped instance, which should favor the use of the
36: * {@link #INTERFACES} or {@link #TARGET_CLASS} proxy-modes instead if it
37: * is to be used as a dependency.
38: */
39: NO,
40:
41: /**
42: * Create a JDK dynamic proxy implementing <i>all</i> interfaces exposed by
43: * the class of the target object.
44: */
45: INTERFACES,
46:
47: /**
48: * Create a class-based proxy (requires CGLIB).
49: */
50: TARGET_CLASS
51:
52: }
|