|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.module.DefaultClassLoader
public class DefaultClassLoader
Hook for plugin modules to allow clients which do not explicitly depend on the plugin, to still load classes from it. This works around Eclipse's classloader isolation architecture.
This getInstance()
method is marked final
because each plugin must implement getInstance()
sepately
in order to force its own classloader to perform the work.
Constructor Summary | |
---|---|
DefaultClassLoader()
|
Method Summary | |
---|---|
IMessageStore |
connect(IBogorConfiguration bc)
Connects this modules to other modules. |
void |
dispose()
Remove references. |
String |
getCopyrightNotice()
Returns the copyright notice for this module. |
Object |
getInstance(String className)
|
IMessageStore |
setOptions(String key,
Properties options)
Sets the options for this module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClassLoader()
Method Detail |
---|
public final Object getInstance(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException
getInstance
in interface IClassLoader
ClassNotFoundException
InstantiationException
IllegalAccessException
public String getCopyrightNotice()
IModule
getCopyrightNotice
in interface IModule
public IMessageStore setOptions(String key, Properties options)
IModule
setOptions
in interface IModule
key
- The key (prefix) for this module options. Must be non-null.
The key is used for module specific options.options
- The options for all modules. Must be non-null.public IMessageStore connect(IBogorConfiguration bc)
IModule
connect
in interface IModule
bc
- The Bogor configuration containing modules to connect to.
Must be non-null.public void dispose()
Disposable
dispose
in interface Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |