java.lang.Object
com.ibm.java.diagnostics.utils.plugins.impl.PluginManagerImpl
- All Implemented Interfaces:
- PluginManager
Singleton manager for working with plugins.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddListener(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 PluginManagervoidRefresh the search path.booleanremoveListener(ClassListener listener) voidScan 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
- 
cachethe cache of scanned files for plugins
- 
pluginSearchPathspecify classloader paths by URI as this can be used by the File class and converted into a URL
 
- 
- 
Method Details- 
getPluginManager
- 
refreshSearchPathpublic 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:
- refreshSearchPathin interface- PluginManager
 
- 
scanForClassFilesScan 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:
- scanForClassFilesin interface- PluginManager
- Throws:
- CommandException
 
- 
getEntryGet an entry from the cache, using generics to describe the type expected.- Type Parameters:
- T-
- Parameters:
- file-
- Returns:
 
- 
getCache- Specified by:
- getCachein interface- PluginManager
 
- 
addListenerDescription copied from interface:PluginManagerAdd 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:
- addListenerin interface- PluginManager
- Parameters:
- listener- listener to add
- Returns:
- result from the standard Set.add() method
 
- 
removeListener- Specified by:
- removeListenerin interface- PluginManager
 
- 
getListeners- Specified by:
- getListenersin interface- PluginManager
 
- 
getClasspath- Specified by:
- getClasspathin interface- PluginManager
 
 
-