@NotThreadSafe public final class PluginRegistryLoader extends AsyncTaskLoader<Map<String,Plugin>>
AsyncTaskLoader
for loading the PluginRegistry
.
In addition to reloading when the registry changes, this also reloads when an interesting configuration change occurs that could affect the display of plug-ins in the UI.
Loader.ForceLoadContentObserver, Loader.OnLoadCanceledListener<D>, Loader.OnLoadCompleteListener<D>
Constructor and Description |
---|
PluginRegistryLoader(Context context,
PluginType type) |
Modifier and Type | Method and Description |
---|---|
void |
deliverResult(Map<String,Plugin> result) |
Map<String,Plugin> |
loadInBackground() |
protected void |
onReset() |
protected void |
onStartLoading() |
protected void |
onStopLoading() |
cancelLoadInBackground, dump, isLoadInBackgroundCanceled, onCanceled, onCancelLoad, onForceLoad, onLoadInBackground, setUpdateThrottle
abandon, cancelLoad, commitContentChanged, dataToString, deliverCancellation, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onAbandon, onContentChanged, registerListener, registerOnLoadCanceledListener, reset, rollbackContentChanged, startLoading, stopLoading, takeContentChanged, toString, unregisterListener, unregisterOnLoadCanceledListener
public PluginRegistryLoader(Context context, PluginType type)
context
- Context
.type
- The plug-in type to load.public Map<String,Plugin> loadInBackground()
loadInBackground
in class AsyncTaskLoader<Map<String,Plugin>>
public void deliverResult(Map<String,Plugin> result)
deliverResult
in class Loader<Map<String,Plugin>>
protected void onStartLoading()
onStartLoading
in class Loader<Map<String,Plugin>>
protected void onStopLoading()
onStopLoading
in class Loader<Map<String,Plugin>>