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 IocAdapter
Copyright © 2015. All Rights Reserved.