public final class JiraComponentFactory extends Object implements ComponentFactory
ComponentFactory
that uses JiraUtils.loadComponent(Class, java.util.Collection)
and
JiraUtils.loadComponent(Class)
.Modifier and Type | Method and Description |
---|---|
<T> T |
createObject(Class<T> type)
Creates a component of the given type, with no arguments.
|
<T> T |
createObject(Class<T> type,
Object... arguments)
Create an object of the passed type using constructor dependency injection.
|
static JiraComponentFactory |
getInstance() |
String |
toString() |
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 dependenciespublic <T> T createObject(Class<T> type)
T
- the type of componenttype
- the type of componentpublic static JiraComponentFactory getInstance()
Copyright © 2002-2018 Atlassian. All Rights Reserved.