|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aurorasoftworks.signal.runtime.core.context.ContextClassLoader
public class ContextClassLoader
An implementation of the IContextLoader
interface that instantiates
IContext
objects with reflection.
Constructor Summary | |
---|---|
protected |
ContextClassLoader()
Creates an instance of ContextClassLoader . |
Method Summary | |
---|---|
protected IContext |
createContextInstance(java.lang.Class contextClassName)
Creates a context instance. |
static IContextLoader |
getInstance()
Returns the singleton instance of this class. |
IContext |
loadContext(java.lang.String contextClass)
Loads a context by instantiating the specified class. |
protected java.lang.Class |
loadContextClass(java.lang.String contextClassName)
Loads the specified context class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ContextClassLoader()
ContextClassLoader
. This constructor
is declared as protected rather than private so that this
class can be extended if needed.
Method Detail |
---|
public static IContextLoader getInstance()
public IContext loadContext(java.lang.String contextClass) throws ContextException
loadContext
in interface IContextLoader
contextClass
- name of a context class to be instantiated
ContextException
- if an error occurs while loading the contextprotected IContext createContextInstance(java.lang.Class contextClassName) throws ContextException
contextClassName
-
ContextException
protected java.lang.Class loadContextClass(java.lang.String contextClassName) throws ContextException
contextClassName
- name of a class to be loaded
ContextException
- if the class cannot be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |