@MustImplementEqualsAndHashcode public abstract class SessionApplicationSingleton extends AbstractSingleton implements Serializable
EScope.SESSION_APPLICATION,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
SessionApplicationSingleton() |
| Modifier and Type | Method and Description |
|---|---|
static List<SessionApplicationSingleton> |
getAllSessionApplicationSingletons()
Get all instantiated singleton objects registered in the current session
application scope.
|
static <T extends SessionApplicationSingleton> |
getSessionApplicationSingleton(Class<T> aClass)
Get the singleton object in the current session application scope, using
the passed class.
|
static <T extends SessionApplicationSingleton> |
getSessionApplicationSingletonIfInstantiated(Class<T> aClass)
Get the singleton object if it is already instantiated inside the current
session application scope or
null if it is not instantiated. |
static boolean |
isSessionApplicationSingletonInstantiated(Class<? extends SessionApplicationSingleton> aClass)
Check if a singleton is already instantiated inside the current session
application scope
|
getAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onDestroy, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInstantiated, toString, writeAbstractSingletonFields@Nonnull public static final <T extends SessionApplicationSingleton> T getSessionApplicationSingleton(@Nonnull Class<T> aClass)
aClass - The class to be used. May not be null. The class must
be public as needs to have a public no-argument constructor.null.@Nullable public static final <T extends SessionApplicationSingleton> T getSessionApplicationSingletonIfInstantiated(@Nonnull Class<T> aClass)
null if it is not instantiated.aClass - The class to be checked. May not be null.null otherwise.public static final boolean isSessionApplicationSingletonInstantiated(@Nonnull Class<? extends SessionApplicationSingleton> aClass)
aClass - The class to be checked. May not be null.true if the singleton for the specified class is
already instantiated, false otherwise.@Nonnull public static final List<SessionApplicationSingleton> getAllSessionApplicationSingletons()
null list with all instances of this class in
the current session application scope.Copyright © 2014–2015 Philip Helger. All rights reserved.