public interface Singleton<T>
SingletonProvider| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the singleton
|
T |
get()
Access the singleton
|
boolean |
isSet()
Check if the singleton is set
|
void |
set(T object)
Store a singleton
|
T get()
IllegalStateException - if the singleton is not setboolean isSet()
void set(T object)
object - the object to storevoid clear()
Copyright © 2016 Seam Framework. All Rights Reserved.