|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.smartgears.context.application.DefaultApplicationContext
public class DefaultApplicationContext
Default ApplicationContext implementation.
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | ||
|---|---|---|
javax.servlet.ServletContext |
application()
Returns the servlet context of 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. |
|
|
profile(Class<T> type)
|
|
Properties |
properties()
Returns the properties of the application |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 instance| Method Detail |
|---|
public javax.servlet.ServletContext application()
ApplicationContext
application in interface ApplicationContextpublic ContainerContext container()
ApplicationContext
container in interface ApplicationContextpublic <T> T profile(Class<T> type)
profile in interface ApplicationContextpublic String name()
ApplicationContext
name in interface ApplicationContextpublic ApplicationConfiguration configuration()
ApplicationContext
configuration in interface ApplicationContextpublic ApplicationLifecycle lifecycle()
ApplicationContext
lifecycle in interface ApplicationContextpublic org.gcube.common.events.Hub events()
ApplicationContext
events in interface ApplicationContextpublic Persistence persistence()
ApplicationContext
persistence in interface ApplicationContextpublic Properties properties()
ApplicationContext
properties in interface ApplicationContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||