|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.bootstrap.api.SingletonProvider
public abstract class SingletonProvider
A provider of Singleton
s
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()
|
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |