org.gcube.smartgears.context.application
Interface ApplicationContext

All Known Implementing Classes:
DefaultApplicationContext

public interface ApplicationContext

The management context of an application.

Author:
Fabio Simeoni

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.
<T> T
profile(Class<T> type)
           
 Properties properties()
          Returns the properties of the application
 

Method Detail

name

String name()
Returns the name of the application.

Returns:
the name

configuration

ApplicationConfiguration configuration()
Returns the configuration of the application.

Returns:
the configuration

profile

<T> T profile(Class<T> type)

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

Persistence persistence()
Returns the persistence manager of the application.

Returns:
the manager

application

javax.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


Copyright © 2013. All Rights Reserved.