public interface

HostContainer

com.atlassian.plugin.hostcontainer.HostContainer
Known Indirect Subclasses

Class Overview

Interface into the host application's dependency injection system. The implementation will be expected to be able to instantiate modules and possibly ModuleDescriptor instances via constructor injection, matching the constructor with the largest number of arguments first.

Summary

Public Methods
abstract <T> T create(Class<T> moduleClass)
Constructs an instance of a class, matching the constructor with the largest number of arguments first, and autowires as appropriate.

Public Methods

public abstract T create (Class<T> moduleClass)

Constructs an instance of a class, matching the constructor with the largest number of arguments first, and autowires as appropriate. Actual method of autowiring may vary between implementations, though all should support constructor injection.

Parameters
moduleClass The class
Returns
  • An instance of the passed class
Throws
IllegalArgumentException If unable to instantiate the class