public interface ComponentClassManager
Modifier and Type | Method and Description |
---|---|
<T> Class<T> |
loadClass(String className)
Load a class from Jira core, or a plugin including plugins that are not enabled.
|
<T> T |
newInstance(String className)
Instantiates the named class using OSGi ClassLoaders and Pico/Spring injection as appropriate.
|
<T> T |
newInstanceFromPlugin(Class<T> clazz,
com.atlassian.plugin.Plugin plugin)
Instantiates the named class by directly using the plugin the class was loaded from and its autowiring strategy.
|
<T> T newInstance(String className) throws ClassNotFoundException
className
- the name of the class to instantiate.ClassNotFoundException
- if the given className was not able to be loaded.<T> T newInstanceFromPlugin(Class<T> clazz, com.atlassian.plugin.Plugin plugin)
clazz
- the class to instantiateplugin
- the plugin in which the class was loaded fromnewInstance(String)
<T> Class<T> loadClass(String className) throws ClassNotFoundException
T
- The Class type.className
- Fully qualified class name.ClassNotFoundException
- if the given className was not able to be loaded.Copyright © 2002-2016 Atlassian. All Rights Reserved.