42 lines
998 B
Java
42 lines
998 B
Java
package org.gcube.application.perform.service;
|
|
|
|
import java.net.URL;
|
|
|
|
import org.gcube.application.perform.service.engine.impl.ImporterImpl;
|
|
import org.gcube.application.perform.service.engine.impl.PerformanceManagerImpl;
|
|
import org.gcube.application.perform.service.engine.utils.ScopeUtils;
|
|
import org.gcube.smartgears.ApplicationManager;
|
|
import org.gcube.smartgears.ContextProvider;
|
|
import org.gcube.smartgears.context.application.ApplicationContext;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
public class PerformServiceManager implements ApplicationManager{
|
|
|
|
|
|
private static final Logger log= LoggerFactory.getLogger(PerformServiceManager.class);
|
|
|
|
|
|
|
|
|
|
@Override
|
|
public void onInit() {
|
|
try {
|
|
|
|
new ImporterImpl().init();
|
|
PerformanceManagerImpl.initDatabase();
|
|
}catch(Throwable t) {
|
|
log.warn("UNABLE TO INIT SERVICE UNDER SCOPE "+ScopeUtils.getCurrentScope(), t);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
public void onShutdown() {
|
|
// TODO Auto-generated method stub
|
|
|
|
}
|
|
|
|
}
|