AeroGear Android Library 1.1.0

org.jboss.aerogear.android.impl.pipeline.loader
Class SaveLoader<T>

java.lang.Object
  extended by android.content.Loader<D>
      extended by android.content.AsyncTaskLoader<T>
          extended by org.jboss.aerogear.android.impl.pipeline.loader.AbstractPipeLoader<T>
              extended by org.jboss.aerogear.android.impl.pipeline.loader.SaveLoader<T>

public class SaveLoader<T>
extends AbstractPipeLoader<T>

This class performs a save operation on behalf of a Pipe using the Loader infrastructure. As a Loader it will only call the save once regardless of how many times it is called and retain an instance to the result of the save unless reset() is called.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.content.Loader
android.content.Loader.ForceLoadContentObserver, android.content.Loader.OnLoadCompleteListener<D>
 
Field Summary
 
Fields inherited from class org.jboss.aerogear.android.impl.pipeline.loader.AbstractPipeLoader
exception
 
Constructor Summary
SaveLoader(android.content.Context context, Callback<T> callback, PipeHandler<T> runner, T data)
           
 
Method Summary
 T loadInBackground()
           
protected  void onStartLoading()
           
 
Methods inherited from class org.jboss.aerogear.android.impl.pipeline.loader.AbstractPipeLoader
getCallback, getException, hasException, onReset
 
Methods inherited from class android.content.AsyncTaskLoader
cancelLoad, dump, onCanceled, onForceLoad, onLoadInBackground, setUpdateThrottle
 
Methods inherited from class android.content.Loader
abandon, dataToString, deliverResult, forceLoad, getContext, getId, isAbandoned, isReset, isStarted, onAbandon, onContentChanged, onStopLoading, registerListener, reset, startLoading, stopLoading, takeContentChanged, toString, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SaveLoader

public SaveLoader(android.content.Context context,
                  Callback<T> callback,
                  PipeHandler<T> runner,
                  T data)
Method Detail

loadInBackground

public T loadInBackground()
Specified by:
loadInBackground in class android.content.AsyncTaskLoader<T>

onStartLoading

protected void onStartLoading()
Overrides:
onStartLoading in class android.content.Loader<T>

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.