App List v1.4.1版本的 MD5 值为:83af4eccc4c2dbeaca363142fe3c4495
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.cvte.tv.appstore.modules.webclient;
import android.content.Context;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;
import retrofit.RestAdapter;
public class c {
private static c d = null;
Context f692a;
Map<String, Object> b;
Map<String, Object> c;
private c() {
}
public static synchronized c a() {
c cVar;
synchronized (c.class) {
if (d == null) {
d = new c();
}
cVar = d;
}
return cVar;
}
public <T> T a(Class<T> cls) {
if (!this.b.containsKey(cls.getName())) {
this.b.put(cls.getName(), new RestAdapter.Builder().setEndpoint("http://starkapp.cvte.com/").setRequestInterceptor(new e(this.f692a)).setErrorHandler(new d()).setConverter(new a(this.f692a, "UTF-8")).setClient(new b()).build().create(cls));
}
return (T) this.b.get(cls.getName());
}
public void a(Context context) {
this.f692a = context;
this.b = new HashMap();
this.c = new Hashtable();
}
public <T> T b(Class<T> cls) {
if (!this.c.containsKey(cls.getName())) {
try {
T newInstance = cls.newInstance();
this.c.put(cls.getName(), newInstance);
return newInstance;
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InstantiationException e2) {
e2.printStackTrace();
}
}
return (T) this.c.get(cls.getName());
}
}