Back to project page loopback-sdk-android.
The source code is released under:
MIT License
If you think the Android project loopback-sdk-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.strongloop.android.loopback; /*from w w w. ja va 2 s. c o m*/ import android.content.Context; import com.strongloop.android.remoting.Repository; import com.strongloop.android.remoting.VirtualObject; import com.strongloop.android.remoting.adapters.RestContract; public class RestRepository<T extends VirtualObject> extends Repository<T>{ public RestRepository(String className) { super(className); } public RestRepository(String className, Class<T> objectClass) { super(className, objectClass); } public RestContract createContract() { return new RestContract(); } public RestAdapter getRestAdapter() { return (RestAdapter) getAdapter(); } protected Context getApplicationContext() { return getRestAdapter().getApplicationContext(); } }