ch.software_atelier.simpleflex.interfaces.file.Quiter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleflex-base Show documentation
Show all versions of simpleflex-base Show documentation
Build Micro Services with pico footprint
package ch.software_atelier.simpleflex.interfaces.file;
import ch.software_atelier.simpleflex.SimpleFlexAccesser;
import ch.software_atelier.simpleflex.NotReadyException;
import java.util.HashMap;
public class Quiter implements FileInterface{
@Override
public boolean process(SimpleFlexAccesser sfa, HashMap config){
try{
if (sfa.ready()){
sfa.quitWebApps();
sfa.stopListening();
sfa.quitFileInterface();
return true;
}
else
return false;
}catch(NotReadyException nre){
return false;
}
}
}