public class

SpringHostContainer

extends Object
implements HostContainer ApplicationContextAware
java.lang.Object
   ↳ com.atlassian.plugin.osgi.bridge.external.SpringHostContainer

Class Overview

Host container implementation that uses the bundle's application context

Summary

Public Constructors
SpringHostContainer()
Public Methods
<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.
void setApplicationContext(ApplicationContext applicationContext)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.hostcontainer.HostContainer
From interface org.springframework.context.ApplicationContextAware

Public Constructors

public SpringHostContainer ()

Public Methods

public 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

public void setApplicationContext (ApplicationContext applicationContext)

Throws
BeansException