prompto.code.Service Maven / Gradle / Ivy
The newest version!
package prompto.code;
import java.util.List;
import prompto.error.PromptoError;
import prompto.runtime.Context;
import prompto.store.IStorable;
import prompto.store.IStore;
import prompto.store.IStored;
public class Service extends Module {
private String serverAboutToStartMethod;
public String getServerAboutToStartMethod() {
return serverAboutToStartMethod;
}
public void setServerAboutToStartMethod(String serverAboutToStartMethod) {
this.serverAboutToStartMethod = serverAboutToStartMethod;
}
@Override
public ModuleType getType() {
return ModuleType.SERVICE;
}
@Override
public IStorable collectStorables(Context context, IStore store, List storables) throws PromptoError {
IStorable storable = super.collectStorables(context, store, storables);
storable.setData("serverAboutToStartMethod", serverAboutToStartMethod);
return storable;
}
@Override
public void fromStored(IStore store, IStored stored) {
super.fromStored(store, stored);
setServerAboutToStartMethod((String)stored.getData("serverAboutToStartMethod"));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy