Class DefaultApplicationContext
java.lang.Object
org.gcube.smartgears.context.application.DefaultApplicationContext
- All Implemented Interfaces:
ApplicationContext
Default
ApplicationContext implementation.- Author:
- Fabio Simeoni
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance by copying the configuration of another.DefaultApplicationContext(ContainerContext container, jakarta.servlet.ServletContext sctx, ApplicationConfiguration configuration, org.gcube.common.events.Hub hub, ApplicationLifecycle lifecycle, Properties properties) Crates an intance with mandatory parameters -
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
-
Constructor Details
-
DefaultApplicationContext
public DefaultApplicationContext(ContainerContext container, jakarta.servlet.ServletContext sctx, ApplicationConfiguration configuration, org.gcube.common.events.Hub hub, ApplicationLifecycle lifecycle, Properties properties) Crates an intance with mandatory parameters- Parameters:
container- the container contextsctx- the servlet contextconfiguration- the configurationhub- the event hublifecycle- the lifecycleproperties- the properties
-
DefaultApplicationContext
Creates an instance by copying the configuration of another.- Parameters:
context- the other instance
-
-
Method Details
-
application
public jakarta.servlet.ServletContext application()Description copied from interface:ApplicationContextReturns the servlet context of the application.- Specified by:
applicationin interfaceApplicationContext- Returns:
- the context
-
container
Description copied from interface:ApplicationContextReturns the management context of the container.- Specified by:
containerin interfaceApplicationContext- Returns:
- the context
-
name
Description copied from interface:ApplicationContextReturns the name of the application.- Specified by:
namein interfaceApplicationContext- Returns:
- the name
-
configuration
Description copied from interface:ApplicationContextReturns the configuration of the application.- Specified by:
configurationin interfaceApplicationContext- Returns:
- the configuration
-
lifecycle
Description copied from interface:ApplicationContextReturns the lifecycle of the application.- Specified by:
lifecyclein interfaceApplicationContext- Returns:
- the lifecycle
-
events
public org.gcube.common.events.Hub events()Description copied from interface:ApplicationContextReturns the event hub of the application- Specified by:
eventsin interfaceApplicationContext- Returns:
- the hub
-
persistence
Description copied from interface:ApplicationContextReturns the persistence manager of the application.- Specified by:
persistencein interfaceApplicationContext- Returns:
- the manager
-
properties
Description copied from interface:ApplicationContextReturns the properties of the application- Specified by:
propertiesin interfaceApplicationContext- Returns:
- the properties
-
id
Description copied from interface:ApplicationContextReturns the application identifier.- Specified by:
idin interfaceApplicationContext- Returns:
- the application ID
-
authorizationProvider
public org.gcube.common.security.factories.AuthorizationProvider authorizationProvider()Returns the authorization provider.- Specified by:
authorizationProviderin interfaceApplicationContext- Returns:
- the AuhtorizationProvider
-
appSpecificConfigurationFolder
Description copied from interface:ApplicationContextReturns the Path to the configuration Folder for the current app- Specified by:
appSpecificConfigurationFolderin interfaceApplicationContext- Returns:
- the Path to the folder , null if the Path is not present
-
allowedSecretFactories
public List<SecretFactory<? extends org.gcube.common.security.secrets.Secret>> allowedSecretFactories()Description copied from interface:ApplicationContextReturns the list of factory secrets ordered by priority.- Specified by:
allowedSecretFactoriesin interfaceApplicationContext- Returns:
- a linked list of secret factories
-