public abstract class AppSingletonizer<T>
extends java.lang.Object
Constructor and Description |
---|
AppSingletonizer(java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
protected T |
createInstance(android.app.Application applicationContext) |
protected abstract T |
get(ShadowApplication shadowApplication) |
T |
getInstance(android.content.Context context) |
protected abstract void |
set(ShadowApplication shadowApplication,
T instance) |
public AppSingletonizer(java.lang.Class<T> clazz)
public T getInstance(android.content.Context context)
protected abstract T get(ShadowApplication shadowApplication)
protected abstract void set(ShadowApplication shadowApplication, T instance)
protected T createInstance(android.app.Application applicationContext)