public class PluginInjector extends Object
Constructor and Description |
---|
PluginInjector() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
newInstance(Class<T> clazz,
com.atlassian.plugin.Plugin plugin)
Returns a new instance of the given class with dependencies injected in a way appropriate to the plugin it comes from.
|
public static <T> T newInstance(Class<T> clazz, com.atlassian.plugin.Plugin plugin)
If this class comes from an OSGi plugin, it will be injected by Spring, else it will be injected by Pico.
T
- The type of the object to be constructed.clazz
- The class to construct.plugin
- The Plugin that the class comes from.Copyright © 2002-2024 Atlassian. All Rights Reserved.