All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.software_atelier.simpleflex.interfaces.file.Quiter Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy