org.jboss.weld.bootstrap.api
Class SingletonProvider
java.lang.Object
org.jboss.weld.bootstrap.api.SingletonProvider
- Direct Known Subclasses:
- IsolatedStaticSingletonProvider, TCCLSingletonProvider
public abstract class SingletonProvider
- extends Object
A provider of Singleton
s
- Author:
- Sanjeeb.Sahoo@Sun.COM, Pete Muir
- See Also:
IsolatedStaticSingletonProvider
,
TCCLSingletonProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonProvider
protected SingletonProvider()
instance
public static SingletonProvider instance()
create
public abstract <T> Singleton<T> create(Class<? extends T> expectedType)
- Create a new singleton
- Parameters:
expectedType
- represents the type of Java object stored in the singleton
- Returns:
- a singelton
initialize
public static void initialize(SingletonProvider instance)
- Initialize with an explicit instance
- Parameters:
instance
-
reset
public static void reset()
Copyright © 2013 Seam Framework. All Rights Reserved.