Class PluginManagerImpl
java.lang.Object
com.ibm.java.diagnostics.utils.plugins.impl.PluginManagerImpl
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addListener
(ClassListener listener) Add a listener to the manager.getCache()
URL[]
<T extends Entry>
TGet an entry from the cache, using generics to describe the type expected.static PluginManager
void
Refresh the search path.boolean
removeListener
(ClassListener listener) void
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.
-
Field Details
-
logger
-
cache
the cache of scanned files for plugins -
pluginSearchPath
-
-
Method Details
-
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
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
-
getEntry
-
getCache
- Specified by:
getCache
in interfacePluginManager
-
addListener
Description copied from interface:PluginManager
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.- Specified by:
addListener
in interfacePluginManager
- Parameters:
listener
- listener to add- Returns:
- result from the standard Set.add() method
-
removeListener
- Specified by:
removeListener
in interfacePluginManager
-
getListeners
- Specified by:
getListeners
in interfacePluginManager
-
getClasspath
- Specified by:
getClasspath
in interfacePluginManager
-