moved manager

This commit is contained in:
Alfredo Oliviero 2024-02-27 12:42:24 +01:00
parent 914197e3f2
commit c7f147d1c9
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
package org.gcube.service.helloworld.manager;
package org.gcube.service.helloworld;
import org.gcube.common.security.providers.SecretManagerProvider;
import org.gcube.common.security.secrets.Secret;
@ -23,6 +23,9 @@ public class HelloWorldManager implements ApplicationManager {
Logger logger = LoggerFactory.getLogger(HelloWorldManager.class);
/**
* {@inheritDoc}
*/
@Override
public void onInit() {
if (ContextProvider.get().container().configuration().mode() == Mode.offline) {
@ -37,6 +40,9 @@ public class HelloWorldManager implements ApplicationManager {
}
}
/**
* {@inheritDoc}
*/
@Override
public void onShutdown() {
if (ContextProvider.get().container().configuration().mode() == Mode.offline) {

View File

@ -12,7 +12,7 @@ import javax.ws.rs.core.Response;
import org.gcube.common.security.Owner;
import org.gcube.common.security.providers.SecretManagerProvider;
import org.gcube.common.security.secrets.Secret;
import org.gcube.service.helloworld.manager.HelloWorldManager;
import org.gcube.service.helloworld.HelloWorldManager;
import org.gcube.service.helloworld.serializers.ContextSerializator;
import org.gcube.smartgears.ContextProvider;
import org.gcube.smartgears.annotations.ManagedBy;