|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationContext
An application context represents a running instance of a RAP application. This context is shared
by all users who access this application. The current application context can be acquired by
RWT.getApplicationContext()
. It can be used to store any data that is shared between all
UI sessions of an application, and to acquire application-scoped instances of framework services
such as the resource manager.
The application context is bound to the servlet context of the hosting web application. It is
destroyed when the web application ends (i.e. the servlet context is destroyed) or when the
application is explicitly stopped by calling ApplicationRunner.stop()
.
The application context is thread safe, it can be accessed concurrently from different threads.
RWT
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value which is stored under the given name in this application context. |
ResourceManager |
getResourceManager()
Returns the instance of the resource manager for this application context. |
ServiceManager |
getServiceManager()
Returns the instance of the service manager for this application context. |
void |
removeAttribute(java.lang.String name)
Removes the object which is stored under the given name in this application context. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Stores the given value in this application context, associated with the given name. |
Method Detail |
---|
void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface IApplicationStore
name
- the name to associate the value withvalue
- the object to be storedjava.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface IApplicationStore
name
- the name whose associated value is requested
null
if no object has been stored by that
namevoid removeAttribute(java.lang.String name)
removeAttribute
in interface IApplicationStore
ResourceManager getResourceManager()
ResourceManager
ServiceManager getServiceManager()
ServiceManager
,
ServiceHandler
|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.