Interface PluginManager
- All Known Implementing Classes:
PluginManagerImpl
public interface PluginManager
Used so that the DTFJPluginClassloader will not be referenced directly in code,
but only loaded through reflection, using a dedicated classloader (in DTFJContext)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addListener
(ClassListener listener) Add a listener to the manager.getCache()
URL[]
void
boolean
removeListener
(ClassListener listener) void
-
Method Details
-
refreshSearchPath
void refreshSearchPath() -
scanForClassFiles
- Throws:
CommandException
-
getCache
Container getCache() -
addListener
Add a listener to the manager. If the listener already exists as determined by a call to equals() then the existing instance is replace by the new one. This allows clients to install a single type of handler but update the configuration or it's methods of operation without retaining a handle to original listener.- Parameters:
listener
- listener to add- Returns:
- result from the standard Set.add() method
-
removeListener
-
getListeners
Set<ClassListener> getListeners() -
getClasspath
URL[] getClasspath()
-