|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.rwt.SessionSingletonBase
Subclasses of SessionSingletonBase
provide access to a
unique instance of their type with session scope. This means that in the
context of one user session getInstance(Class)
will always return
the same object, but for different user sessions the returned instances
will be different.
usage:
public class FooSingleton extends SessionSingletonBase { private FooSingleton() {} public static FooSingleton getInstance() { return ( FooSingleton )getInstance( FooSingleton.class ); } }
Field Summary | |
static String |
LOCK
IMPORTANT: This constant is not part of the RWT public API. |
Constructor Summary | |
SessionSingletonBase()
|
Method Summary | |
static Object |
getInstance(Class type)
Returns the singleton instance of the specified type that is stored in the current session context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LOCK
Constructor Detail |
public SessionSingletonBase()
Method Detail |
public static Object getInstance(Class type)
type
- specifies the session singleton instance type.
|
Eclipse Rich Ajax Platform Release 1.3 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Innoopract Informationssysteme GmbH and others 2002, 2011. All rights reserved.