Module openj9.dtfj

Class PluginManagerImpl

    • Field Detail

      • logger

        protected static final Logger logger
      • cache

        protected final Container cache
        the cache of scanned files for plugins
      • pluginSearchPath

        protected final ArrayList<File> pluginSearchPath
        specify classloader paths by URI as this can be used by the File class and converted into a URL
    • 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 interface PluginManager
      • 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 interface PluginManager
        Throws:
        CommandException
      • getEntry

        public <T extends Entry> T getEntry​(File file)
        Get an entry from the cache, using generics to describe the type expected.
        Type Parameters:
        T -
        Parameters:
        file -
        Returns: