AeroGear Android Library 1.1.0

org.jboss.aerogear.android.pipeline
Interface PipeHandler<T>

All Known Implementing Classes:
RestRunner

public interface PipeHandler<T>

Classes which implement this interface provide the logic for how pipes interact with services.


Method Summary
 List<T> onRead(Pipe<T> requestingPipe)
          This method is called after a call to read.
 List<T> onReadWithFilter(ReadFilter filter, Pipe<T> requestingPipe)
           
 void onRemove(String id)
           
 T onSave(T item)
           
 

Method Detail

onRead

List<T> onRead(Pipe<T> requestingPipe)
This method is called after a call to read. It performs the actual load of data and returns.

Returns:
a List of data.

onReadWithFilter

List<T> onReadWithFilter(ReadFilter filter,
                         Pipe<T> requestingPipe)

onSave

T onSave(T item)

onRemove

void onRemove(String id)

AeroGear Android Library 1.1.0

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