1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package net.sf.composite;
17
18 import net.sf.composite.extract.ComponentAccessor;
19 import net.sf.composite.extract.extractors.ContainerPropertyComponentAccessor;
20 import net.sf.composite.specialize.Specializer;
21 import net.sf.composite.specialize.specializers.CachingSpecializerProxy;
22 import net.sf.composite.specialize.specializers.Jdk13ProxySpecializer;
23 import net.sf.composite.validate.ComponentValidator;
24 import net.sf.composite.validate.validators.SimpleComponentValidator;
25
26 /***
27 * Creates default instances of the main objects that are used repeatedly in the
28 * framework.
29 *
30 * @author Matt Sgarlata
31 * @since Mar 11, 2005
32 */
33 public class Defaults {
34
35 public static final ComponentValidator createComponentValidator() {
36 return new SimpleComponentValidator();
37 }
38 public static final ComponentAccessor createComponentAccessor() {
39 return new ContainerPropertyComponentAccessor();
40 }
41 public static final Specializer createSpecializer() {
42 return new CachingSpecializerProxy(new Jdk13ProxySpecializer());
43 }
44
45 }