2016-11-25 15:42:29 +01:00
|
|
|
package org.gcube.smartgears.context.container;
|
|
|
|
|
|
|
|
import org.gcube.common.events.Hub;
|
|
|
|
import org.gcube.smartgears.configuration.container.ContainerConfiguration;
|
|
|
|
import org.gcube.smartgears.context.Properties;
|
|
|
|
import org.gcube.smartgears.lifecycle.container.ContainerLifecycle;
|
2022-03-17 17:17:15 +01:00
|
|
|
import org.gcube.smartgears.persistence.PersistenceWriter;
|
2023-01-19 16:16:14 +01:00
|
|
|
import org.gcube.smartgears.security.AuthorizationProvider;
|
2016-11-25 15:42:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The management context of the container.
|
|
|
|
*
|
|
|
|
* @author Fabio Simeoni
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface ContainerContext {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the configuration of the container.
|
|
|
|
* @return the configuration
|
|
|
|
*/
|
|
|
|
ContainerConfiguration configuration();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the lifecycle of the container
|
|
|
|
* @return the lifecycle
|
|
|
|
*/
|
|
|
|
ContainerLifecycle lifecycle();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the event hub of the container
|
|
|
|
* @return the hub
|
|
|
|
*/
|
|
|
|
Hub events();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the persistence manager of the container.
|
|
|
|
* @return the manager
|
|
|
|
*/
|
2023-02-06 17:34:18 +01:00
|
|
|
PersistenceWriter persistenceWriter();
|
2016-11-25 15:42:29 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the properties of the container.
|
|
|
|
* @return the properties
|
|
|
|
*/
|
|
|
|
Properties properties();
|
|
|
|
|
|
|
|
String id();
|
2023-01-19 16:16:14 +01:00
|
|
|
|
2016-11-25 15:42:29 +01:00
|
|
|
|
2023-01-19 16:16:14 +01:00
|
|
|
AuthorizationProvider authorizationProvider();
|
2023-02-06 17:34:18 +01:00
|
|
|
|
2023-02-01 14:40:31 +01:00
|
|
|
|
2016-11-25 15:42:29 +01:00
|
|
|
}
|