|
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.Objectorg.eclipse.rwt.SessionSingletonBase
public abstract class SessionSingletonBase
SessionSingletonBase
creates and manages a unique instance of a given 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 { private FooSingleton() {} public static FooSingleton getInstance() { return ( FooSingleton )SessionSingletonBase.getInstance( FooSingleton.class ); } }
Constructor Summary | |
---|---|
SessionSingletonBase()
|
Method Summary | |
---|---|
static java.lang.Object |
getInstance(java.lang.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 |
Constructor Detail |
---|
public SessionSingletonBase()
Method Detail |
---|
public static java.lang.Object getInstance(java.lang.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.