public final class

JiraComponentFactory

extends Object
implements ComponentFactory
java.lang.Object
   ↳ com.atlassian.jira.util.JiraComponentFactory

Class Overview

Default implementation of ComponentFactory that uses loadComponent(Class, java.util.Collection) and loadComponent(Class).

Summary

Public Methods
<T> T createObject(Class<T> type, Object... arguments)
Create an object of the passed type using constructor dependency injection.
<T> T createObject(Class<T> type)
Create an object of the passed type using constructor dependency injection.
static JiraComponentFactory getInstance()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.ComponentFactory

Public Methods

public T createObject (Class<T> type, Object... arguments)

Create an object of the passed type using constructor dependency injection. A runtime exception will be thrown if the object cannot be created.

Parameters
type the type of the object to create.
arguments additional objects that can be used to resolve dependencies
Returns
  • return a newly created object.

public T createObject (Class<T> type)

Create an object of the passed type using constructor dependency injection. A runtime exception will be thrown if the object cannot be created.

Parameters
type the type of the object to create.
Returns
  • return a newly created object.

public static JiraComponentFactory getInstance ()

public String toString ()