perform-service_broken/src/main/java/org/gcube/application/perform/service/PerformServiceManager.java

34 lines
729 B
Java

package org.gcube.application.perform.service;
import java.net.URL;
import org.gcube.smartgears.ApplicationManager;
import org.gcube.smartgears.ContextProvider;
import org.gcube.smartgears.context.application.ApplicationContext;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class PerformServiceManager implements ApplicationManager{
@Override
public void onInit() {
try {
ApplicationContext context=ContextProvider.get();
URL resourceUrl = context.application().getResource("/WEB-INF/config.properties");
LocalConfiguration.init(resourceUrl);
}catch(Throwable t) {
log.error("UNABLE TO INIT SERVICE ", t);
}
}
@Override
public void onShutdown() {
// TODO Auto-generated method stub
}
}