|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.plugin.PluginInjector
public class PluginInjector
A helper class for doing Dependency Injection on classes living in plugins.
Constructor Summary | |
---|---|
PluginInjector()
|
Method Summary | ||
---|---|---|
static
|
newInstance(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginInjector()
Method Detail |
---|
public static <T> T newInstance(java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |