You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
common-smartgears/src/main/java/org/gcube/smartgears/context/container/ContainerContext.java

57 lines
1.1 KiB
Java

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;
import org.gcube.smartgears.persistence.PersistenceWriter;
import org.gcube.smartgears.security.AuthorizationProvider;
/**
* 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
*/
PersistenceWriter persistenceWriter();
/**
* Returns the properties of the container.
* @return the properties
*/
Properties properties();
String id();
AuthorizationProvider authorizationProvider();
}