|
||||||||||
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 Web Beans to store various application scoped objects. This allows Web Beans to operate as a shared library. In a shared mode, the same instance of WebBeans implementation is used by all the applications in a server environment. In the exclusive mode, each application loads a separate copy of WebBeans implementation at the application level. Alternative implementations of Singleton can be used as required
SingletonProvider
Method Summary | |
---|---|
T |
get()
Access the singleton |
void |
set(T object)
Store a singleton |
Method Detail |
---|
T get()
void set(T object)
object
- the object to store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |