public class InstanceModule extends BaseModule
| Constructor and Description |
|---|
InstanceModule(Object object) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> type) |
<T> T |
get(Class<T> type,
String name) |
Object |
get(String name) |
ProviderInfo |
getProviderInfo(Class<?> type) |
ProviderInfo |
getProviderInfo(Class<?> type,
String name) |
ProviderInfo |
getProviderInfo(String name) |
<T> Supplier<T> |
getSupplier(Class<T> type) |
<T> Supplier<T> |
getSupplier(Class<T> type,
String name) |
boolean |
has(Class type) |
boolean |
has(String name) |
Iterable<String> |
names() |
Iterable |
types() |
Iterable<Object> |
values() |
parentpublic InstanceModule(Object object)
public <T> T get(Class<T> type)
get in interface Moduleget in class BaseModulepublic Object get(String name)
get in interface Moduleget in class BaseModulepublic <T> T get(Class<T> type, String name)
get in interface Moduleget in class BaseModulepublic ProviderInfo getProviderInfo(Class<?> type)
public ProviderInfo getProviderInfo(String name)
public ProviderInfo getProviderInfo(Class<?> type, String name)
public <T> Supplier<T> getSupplier(Class<T> type, String name)
getSupplier in interface ModulegetSupplier in class BaseModulepublic <T> Supplier<T> getSupplier(Class<T> type)
getSupplier in interface ModulegetSupplier in class BaseModulepublic Iterable types()
public boolean has(Class type)
has in interface Modulehas in class BaseModulepublic boolean has(String name)
has in interface Modulehas in class BaseModuleCopyright © 2016. All Rights Reserved.