com.atlassian.jira.util.ComponentFactory |
Known Indirect Subclasses
|
Class Overview
A factory that allows objects to be created through constructor dependency injection at runtime.
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.
|
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.