package org.adligo.models.core.client;

import org.adligo.i.adi.client.I_Invoker;
import org.adligo.i.util.client.I_Map;
import org.adligo.i.util.client.MapFactory;

public class ConstantsFactory implements I_Invoker {
	public static final ConstantsFactory INSTANCE = new ConstantsFactory();
	
	private I_Map map = MapFactory.create();
	private ConstantsFactory() {
		add(I_UserValidationConstants.class, new UserValidationEnglishConstants());
	};
	
	public Object invoke(Object valueObject) {
		return map.get(valueObject);
	}

	public synchronized void add(Class clazz, Object impl) {
		map.put(clazz, impl);
	}
}

@@ -361,19 +361,19 @@
 y() %7B%0A%09%09
-add
+put
 (I_UserV
@@ -552,11 +552,11 @@
 oid 
-add
+put
 (Cla

put not add