public interface ServiceLocator
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
create(Constructor<T> ctor) |
default <T> T |
resolve(Class<T> manifest) |
default <T> T |
resolve(Class<T> container,
Type argument,
Type... arguments) |
Object |
resolve(Type type) |
default <T> Optional<T> |
tryResolve(Class<T> manifest) |
Object resolve(Type type) throws ReflectiveOperationException
ReflectiveOperationExceptiondefault <T> T resolve(Class<T> manifest)
default <T> T resolve(Class<T> container, Type argument, Type... arguments) throws ReflectiveOperationException
ReflectiveOperationExceptiondefault <T> T create(Constructor<T> ctor) throws ReflectiveOperationException
ReflectiveOperationExceptionCopyright © 2015. All rights reserved.