Back to project page spotastop.
The source code is released under:
MIT License
If you think the Android project spotastop listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package resources; //ww w. j a va 2 s . c om import java.util.HashMap; public class ResourcesMapper { private static ResourcesMapper instance; public static ResourcesMapper getInstance(){ if(instance==null) { instance=new ResourcesMapper(); } return instance; } private ResourcesMapper(){ } private HashMap<String,Class> mapping=new HashMap<String,Class>(); public void registerResClass(String resClassifier, Class javaClass) { this.mapping.put(resClassifier, javaClass); } public Class getResClass(String resClassifier) { return this.mapping.get(resClassifier); } }