|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentClassManager
Provides methods to help load and instantiate classes that can handle OSGi plugins with their ClassLoaders and Components that don't live in Pico Container.
| Method Summary | ||
|---|---|---|
|
loadClass(String className)
Load a class from Jira core, or a plugin including plugins that are not enabled. |
|
|
newInstance(String className)
Instantiates the named class using OSGi ClassLoaders and Pico/Spring injection as appropriate. |
|
|
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. |
|
| Method Detail |
|---|
<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 from
newInstance(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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||