1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.morph.reflect.reflectors;
17
18 import net.sf.morph.reflect.Reflector;
19
20 /**
21 * A wrapper for Reflectors that allows any reflector to implement
22 * {@link net.sf.morph.reflect.DecoratedReflector}.
23 *
24 * @author Matt Sgarlata
25 * @since Dec 29, 2004
26 */
27 public class ReflectorDecorator extends BaseReflector {
28
29 private Reflector reflector;
30
31 public ReflectorDecorator(Reflector reflector) {
32 this.reflector = reflector;
33 }
34
35 protected Class[] getReflectableClassesImpl() throws Exception {
36 return reflector.getReflectableClasses();
37 }
38
39 protected Reflector getReflector() {
40 return reflector;
41 }
42 protected void setReflector(Reflector reflector) {
43 this.reflector = reflector;
44 }
45 }