|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Singleton<T>
Holds a reference to an application singleton. This singleton is used internally by Weld to store various application scoped objects. This allows Weld to operate as a shared library. In a shared mode, the same instance of Weld implementation is used by all the applications in a server environment. In the exclusive mode, each application loads a separate copy of Weld implementation at the application level. Alternative implementations of Singleton can be used as required
SingletonProvider| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
T get()
java.lang.IllegalStateException - if the singleton is not setboolean isSet()
void set(T object)
object - the object to storevoid clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||