com.atlassian.jira.plugin
Interface ComponentClassManager

All Known Implementing Classes:
DefaultComponentClassManager

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.

Since:
v4.0

Method Summary
<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.
 

Method Detail

newInstance

<T> T newInstance(String className)
              throws ClassNotFoundException
Instantiates the named class using OSGi ClassLoaders and Pico/Spring injection as appropriate.

Parameters:
className - the name of the class to instantiate.
Returns:
the instance of the requested class.
Throws:
ClassNotFoundException - if the given className was not able to be loaded.

loadClass

<T> Class<T> loadClass(String className)
                   throws ClassNotFoundException
Load a class from Jira core, or a plugin including plugins that are not enabled.

Type Parameters:
T - The Class type.
Parameters:
className - Fully qualified class name.
Returns:
the loaded Class of type T.
Throws:
ClassNotFoundException - if the given className was not able to be loaded.


Copyright © 2002-2009 Atlassian. All Rights Reserved.