public class

SimpleConstructorHostContainer

extends Object
implements HostContainer
java.lang.Object
   ↳ com.atlassian.plugin.hostcontainer.SimpleConstructorHostContainer

Class Overview

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.

Summary

Public Constructors
SimpleConstructorHostContainer(Map<Class<?>, Object> context)
Public Methods
<T> T create(Class<T> moduleClass)
Creates a class instance, performing dependency injection using the initialised context map
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.hostcontainer.HostContainer

Public Constructors

public SimpleConstructorHostContainer (Map<Class<?>, Object> context)

Public Methods

public T create (Class<T> moduleClass)

Creates a class instance, performing dependency injection using the initialised context map

Parameters
moduleClass The target object class
Returns
  • The instance
Throws
IllegalArgumentException Wraps any exceptions thrown during the constructor call