This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mUserService is an instance of UserService, a Retrofit interface | |
mUserService | |
.getProfile(mUser.getId(), mUser.getSessionToken()) | |
.observeOn(mComputationScheduler).map(new Func1<UserProfile, UserProfileModified>() { | |
@Override | |
public UserProfileModified call(UserProfile userProfile) { | |
// Code here executes on background thread | |
// Modify returned user profile as necessary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Initializes all plugins if {@link RapidMiner#PROPERTY_RAPIDMINER_INIT_PLUGINS} is set. Plugins are searched for | |
* in the directory specified by {@link RapidMiner#PROPERTY_RAPIDMINER_INIT_PLUGINS_LOCATION} or, if this is not | |
* set, in the RapidMiner/lib/plugins directory. | |
*/ | |
public static void initAll() { | |
// *** SURE ENOUGH, EMBEDDED_WITHOUT_UI WILL KEEP THIS FROM BEING CALLED *** | |
// only load managed extensions if execution modes indicates | |
if (RapidMiner.getExecutionMode().isLoadingManagedExtensions()) | |
ManagedExtension.init(); |