|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.JiraComponentFactory
public final class JiraComponentFactory
Default implementation of ComponentFactory
that uses JiraUtils.loadComponent(Class, java.util.Collection)
and
JiraUtils.loadComponent(Class)
.
Method Summary | ||
---|---|---|
|
createObject(Class<T> type)
Create an object of the passed type using constructor dependency injection. |
|
|
createObject(Class<T> type,
Object... arguments)
Create an object of the passed type using constructor dependency injection. |
|
static JiraComponentFactory |
getInstance()
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public <T> T createObject(Class<T> type, Object... arguments)
ComponentFactory
createObject
in interface ComponentFactory
T
- the type of the returned object.type
- the type of the object to create.arguments
- additional objects that can be used to resolve dependencies
public <T> T createObject(Class<T> type)
ComponentFactory
createObject
in interface ComponentFactory
T
- the type of the returned object.type
- the type of the object to create.
public String toString()
toString
in class Object
public static JiraComponentFactory getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |