public class SimpleConstructorHostContainer extends Object implements HostContainer
| Constructor and Description |
|---|
SimpleConstructorHostContainer(Map<Class<?>,Object> context) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> moduleClass)
Creates a class instance, performing dependency injection using the initialised context map
|
public <T> T create(Class<T> moduleClass) throws IllegalArgumentException
create in interface HostContainermoduleClass - The target object classIllegalArgumentException - Wraps any exceptions thrown during the constructor callCopyright © 2019 Atlassian. All rights reserved.