1
2
3
4
5
6
7
8
9
10
11
12
13
14 package net.sf.jgabl2.core.util.check;
15
16 import net.sf.jgabl2.core.util.check.impl.NormalCheckPolicyImpl;
17
18 /**
19 * A dummy implementation of
20 * a manager which can retrieve a {@link CheckPolicy}
21 * for a specified class.
22 *
23 * @author Alexander Schwartz
24 * @since 0.1.0
25 */
26 public final class CheckPolicyManager {
27
28
29 /** Prevents instantiation. */
30 private CheckPolicyManager() {
31
32 }
33
34
35 /**
36 * Returns {@link CheckPolicy} for a specified class.
37 *
38 * @param forClass the class for which a
39 * {@link CheckPolicy} is requested.
40 * @return a {@link CheckPolicy}; may not be <code>null</code>
41 */
42 public static CheckPolicy getCheckPolicy(final Class<?> forClass) {
43 return new NormalCheckPolicyImpl();
44 }
45 }