- java.lang.Object
-
- com.ibm.java.diagnostics.utils.plugins.impl.PluginManagerImpl
-
- All Implemented Interfaces:
PluginManager
public class PluginManagerImpl extends Object implements PluginManager
Singleton manager for working with plugins.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Entry>
TgetEntry(File file)
Get an entry from the cache, using generics to describe the type expected.static PluginManager
getPluginManager()
void
refreshSearchPath()
Refresh the search path.void
scanForClassFiles()
Scan the supplied plugin path to find classes set by the plugin search path and then examine the classes to see if any of the correct interfaces and annotations are supported.-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.java.diagnostics.utils.plugins.PluginManager
addListener, getCache, getClasspath, getListeners, removeListener
-
-
-
-
Method Detail
-
getPluginManager
public static PluginManager getPluginManager()
-
refreshSearchPath
public void refreshSearchPath()
Refresh the search path. This will take it's setting in order from 1. System property : com.ibm.java.diagnostics.plugins 2. Environment variable : com.ibm.java.diagnostics.plugins- Specified by:
refreshSearchPath
in interfacePluginManager
-
scanForClassFiles
public void scanForClassFiles() throws CommandException
Scan the supplied plugin path to find classes set by the plugin search path and then examine the classes to see if any of the correct interfaces and annotations are supported. This method does not support MVS on z/OS, the path needs to point to HFS locations- Specified by:
scanForClassFiles
in interfacePluginManager
- Throws:
CommandException
-
-