|
Eclipse Remote Application Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.rap.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 SessionSingletonBase.getInstance( FooSingleton.class ); } }
Constructor Summary | |
---|---|
SessionSingletonBase()
Deprecated. |
Method Summary | ||
---|---|---|
static
|
getInstance(java.lang.Class<T> type)
Deprecated. 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 <T> T getInstance(java.lang.Class<T> type)
type
- specifies the session singleton instance type.
|
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, 2013. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0