Default IS Provider

This commit is contained in:
Fabio Sinibaldi 2022-02-25 11:46:58 +01:00
parent 3249c7be04
commit 46f0724efe
2 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package org.gcube.application.cms.implementations; package org.gcube.application.cms.implementations;
import org.gcube.application.cms.caches.Engine;
import org.gcube.application.geoportal.common.model.rest.ConfigurationException; import org.gcube.application.geoportal.common.model.rest.ConfigurationException;
import org.gcube.application.geoportal.common.model.rest.DatabaseConnection; import org.gcube.application.geoportal.common.model.rest.DatabaseConnection;
import org.gcube.application.geoportal.common.utils.ISUtils; import org.gcube.application.geoportal.common.utils.ISUtils;
@ -7,7 +8,7 @@ import org.gcube.common.resources.gcore.ServiceEndpoint;
import java.util.List; import java.util.List;
public class DefaultISProvider implements ISInterface{ public class DefaultISProvider implements ISInterface, Engine<ISInterface> {
@Override @Override
@ -29,4 +30,21 @@ public class DefaultISProvider implements ISInterface{
public String encryptString(String toEncrypt) { public String encryptString(String toEncrypt) {
return ISUtils.encryptString(toEncrypt); return ISUtils.encryptString(toEncrypt);
} }
// ** ENGINE
@Override
public void init() {
}
@Override
public void shutdown() {
}
@Override
public ISInterface getObject() throws ConfigurationException {
return this;
}
} }

View File

@ -33,6 +33,6 @@ public class ImplementationProvider {
private ImplementationProvider(){ private ImplementationProvider(){
//Defaults //Defaults
setEngine(new DefaultISProvider(),ISInterface.class);
} }
} }