public class DefaultApplicationContext extends Object implements ApplicationContext
ApplicationContext implementation.| Constructor and Description |
|---|
DefaultApplicationContext(ApplicationContext context)
Creates an instance by copying the configuration of another.
|
DefaultApplicationContext(ContainerContext container,
javax.servlet.ServletContext sctx,
ApplicationConfiguration configuration,
org.gcube.common.events.Hub hub,
ApplicationLifecycle lifecycle,
Properties properties)
Crates an intance with mandatory parameters
|
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletContext |
application()
Returns the servlet context of the application.
|
String |
authorizationToken()
Returns the authorization token for the application
|
ApplicationConfiguration |
configuration()
Returns the configuration of the application.
|
ContainerContext |
container()
Returns the management context of the container.
|
org.gcube.common.events.Hub |
events()
Returns the event hub of the application
|
ApplicationLifecycle |
lifecycle()
Returns the lifecycle of the application.
|
String |
name()
Returns the name of the application.
|
Persistence |
persistence()
Returns the persistence manager of the application.
|
<T> T |
profile(Class<T> type) |
Properties |
properties()
Returns the properties of the application
|
public DefaultApplicationContext(ContainerContext container, javax.servlet.ServletContext sctx, ApplicationConfiguration configuration, org.gcube.common.events.Hub hub, ApplicationLifecycle lifecycle, Properties properties)
container - the container contextsctx - the servlet contextconfiguration - the configurationhub - the event hublifecycle - the lifecycleproperties - the propertiespublic DefaultApplicationContext(ApplicationContext context)
context - the other instancepublic javax.servlet.ServletContext application()
ApplicationContextapplication in interface ApplicationContextpublic ContainerContext container()
ApplicationContextcontainer in interface ApplicationContextpublic <T> T profile(Class<T> type)
profile in interface ApplicationContextpublic String name()
ApplicationContextname in interface ApplicationContextpublic ApplicationConfiguration configuration()
ApplicationContextconfiguration in interface ApplicationContextpublic ApplicationLifecycle lifecycle()
ApplicationContextlifecycle in interface ApplicationContextpublic org.gcube.common.events.Hub events()
ApplicationContextevents in interface ApplicationContextpublic Persistence persistence()
ApplicationContextpersistence in interface ApplicationContextpublic Properties properties()
ApplicationContextproperties in interface ApplicationContextpublic String authorizationToken()
ApplicationContextauthorizationToken in interface ApplicationContextCopyright © 2016. All Rights Reserved.