|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.hostcontainer.SimpleConstructorHostContainer
public class SimpleConstructorHostContainer
Constructs module instances, matching the constructor with the largest number of arguments first. The objects to pass to the constructor are retrieved from the passed map of classes and objects. The classes are matched on an exact class match.
| Constructor Summary | |
|---|---|
SimpleConstructorHostContainer(java.util.Map<java.lang.Class<?>,java.lang.Object> context)
|
|
| Method Summary | ||
|---|---|---|
|
create(java.lang.Class<T> moduleClass)
Creates a class instance, performing dependency injection using the initialised context map |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleConstructorHostContainer(java.util.Map<java.lang.Class<?>,java.lang.Object> context)
| Method Detail |
|---|
public <T> T create(java.lang.Class<T> moduleClass)
throws java.lang.IllegalArgumentException
create in interface HostContainermoduleClass - The target object class
java.lang.IllegalArgumentException - Wraps any exceptions thrown during the constructor call
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||