|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.bootstrap.api.SingletonProvider
public abstract class SingletonProvider
A provider of Singletons
IsolatedStaticSingletonProvider,
TCCLSingletonProvider| Constructor Summary | |
|---|---|
protected |
SingletonProvider()
|
| Method Summary | ||
|---|---|---|
abstract
|
create(java.lang.Class<? extends T> expectedType)
Create a new singleton |
|
static void |
initialize(SingletonProvider instance)
Initialize with an explicit instance |
|
static SingletonProvider |
instance()
|
|
static void |
reset()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SingletonProvider()
| Method Detail |
|---|
public static SingletonProvider instance()
public abstract <T> Singleton<T> create(java.lang.Class<? extends T> expectedType)
expectedType - represents the type of Java object stored in the singleton
public static void initialize(SingletonProvider instance)
instance - public static void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||