Interface ApplicationContext
- All Known Implementing Classes:
DefaultApplicationContext
public interface ApplicationContext
The management context of an application.
- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
-
Method Summary
Modifier and TypeMethodDescriptionList<SecretFactory<? extends org.gcube.common.security.secrets.Secret>>Returns the list of factory secrets ordered by priority.jakarta.servlet.ServletContextReturns the servlet context of the application.Returns the Path to the configuration Folder for the current apporg.gcube.common.security.factories.AuthorizationProviderReturns the authorization provider.Returns the configuration of the application.Returns the management context of the container.org.gcube.common.events.Hubevents()Returns the event hub of the applicationid()Returns the application identifier.Returns the lifecycle of the application.name()Returns the name of the application.Returns the persistence manager of the application.Returns the properties of the application
-
Method Details
-
id
String id()Returns the application identifier.- Returns:
- the application ID
-
name
String name()Returns the name of the application.- Returns:
- the name
-
configuration
ApplicationConfiguration configuration()Returns the configuration of the application.- Returns:
- the configuration
-
lifecycle
ApplicationLifecycle lifecycle()Returns the lifecycle of the application.- Returns:
- the lifecycle
-
events
org.gcube.common.events.Hub events()Returns the event hub of the application- Returns:
- the hub
-
persistence
PersistenceWriter persistence()Returns the persistence manager of the application.- Returns:
- the manager
-
application
jakarta.servlet.ServletContext application()Returns the servlet context of the application.- Returns:
- the context
-
container
ContainerContext container()Returns the management context of the container.- Returns:
- the context
-
properties
Properties properties()Returns the properties of the application- Returns:
- the properties
-
authorizationProvider
org.gcube.common.security.factories.AuthorizationProvider authorizationProvider()Returns the authorization provider.- Returns:
- the AuhtorizationProvider
-
appSpecificConfigurationFolder
Path appSpecificConfigurationFolder()Returns the Path to the configuration Folder for the current app- Returns:
- the Path to the folder , null if the Path is not present
-
allowedSecretFactories
List<SecretFactory<? extends org.gcube.common.security.secrets.Secret>> allowedSecretFactories()Returns the list of factory secrets ordered by priority.- Returns:
- a linked list of secret factories
-