Lines Matching refs:ClearsilverFactory
29 * instead directly inject {@link ClearsilverFactory} into the classes that
31 * For now, projects should set the {@link ClearsilverFactory} in FactoryLoader
37 * it in. The ClearsilverFactory object to use can be either passed into the
50 // ClearsilverFactory to be used when constructing objects. Allows
52 private static ClearsilverFactory clearsilverFactory = null;
59 * Get the {@link org.clearsilver.ClearsilverFactory} object to be used by
62 public static ClearsilverFactory getClearsilverFactory() {
64 if (clearsilverFactory == null) {
68 if (clearsilverFactory == null) {
69 clearsilverFactory = newDefaultClearsilverFactory();
76 ClearsilverFactory returned = clearsilverFactory;
82 * Set the {@link org.clearsilver.ClearsilverFactory} to be used by
89 public static ClearsilverFactory setClearsilverFactory(
90 ClearsilverFactory clearsilverFactory) {
93 ClearsilverFactory previousFactory = FactoryLoader.clearsilverFactory;
94 FactoryLoader.clearsilverFactory = clearsilverFactory;
101 private static ClearsilverFactory newDefaultClearsilverFactory() {
107 Class<ClearsilverFactory> clazz =
109 Constructor<ClearsilverFactory> constructor = clazz.getConstructor();
112 String errMsg = "Unable to load default ClearsilverFactory class: \"" +
119 private static Class<ClearsilverFactory> loadClass(String className,
121 return (Class<ClearsilverFactory>) Class.forName(className, true,