|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.plugin.DefaultComponentClassManager
public class DefaultComponentClassManager
Constructor Summary | |
---|---|
DefaultComponentClassManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
|
Method Summary | ||
---|---|---|
|
loadClass(java.lang.String className)
Load a class from Jira core, or a plugin including plugins that are not enabled. |
|
|
newInstance(java.lang.String className)
Instantiates the named class using OSGi ClassLoaders and Pico/Spring injection as appropriate. |
|
|
newInstanceFromPlugin(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultComponentClassManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail |
---|
public <T> T newInstance(java.lang.String className) throws java.lang.ClassNotFoundException
ComponentClassManager
newInstance
in interface ComponentClassManager
className
- the name of the class to instantiate.
java.lang.ClassNotFoundException
- if the given className was not able to be loaded.public <T> T newInstanceFromPlugin(java.lang.Class<T> clazz, com.atlassian.plugin.Plugin plugin)
ComponentClassManager
newInstanceFromPlugin
in interface ComponentClassManager
clazz
- the class to instantiateplugin
- the plugin in which the class was loaded from
ComponentClassManager.newInstance(String)
public <T> java.lang.Class<T> loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
ComponentClassManager
loadClass
in interface ComponentClassManager
T
- The Class type.className
- Fully qualified class name.
java.lang.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 |