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) |
<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 |
values() |
setParentpublic 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 <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 values()
public 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 © 2014. All rights reserved.