public class Singletons extends Object implements IocAdapter
| Constructor and Description |
|---|
Singletons(Object... beansToRegister) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> type) |
<T> Singletons |
register(Class<? extends T> type,
T singleton) |
public Singletons(Object... beansToRegister)
public <T> Singletons register(Class<? extends T> type, T singleton)
public <T> T get(Class<T> type)
get in interface IocAdapterCopyright © 2014. All Rights Reserved.