com.octo.android.robospice.command.RemoveDataClassFromCacheCommand Maven / Gradle / Ivy
package com.octo.android.robospice.command;
import com.octo.android.robospice.SpiceManager;
import com.octo.android.robospice.SpiceService;
public class RemoveDataClassFromCacheCommand extends SpiceManager.SpiceManagerCommand {
private final Class> clazz;
public RemoveDataClassFromCacheCommand(SpiceManager spiceManager, Class clazz) {
super(spiceManager);
this.clazz = clazz;
}
@Override
protected Void executeWhenBound(SpiceService spiceService) {
spiceService.removeAllDataFromCache(clazz);
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy