@Deprecated
public abstract class SessionSingletonBase
extends java.lang.Object
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 and Description |
---|
SessionSingletonBase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
getInstance(java.lang.Class<T> type)
Deprecated.
Returns the singleton instance of the specified type that is stored
in the current session context.
|
public static <T> T getInstance(java.lang.Class<T> type)
type
- specifies the session singleton instance type.
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0