Class ModuleInfo


  • public final class ModuleInfo
    extends java.lang.Object
    Management information about a module instance.
    Author:
    David M. Lloyd
    • Constructor Detail

      • ModuleInfo

        @ConstructorProperties({"name","moduleLoader","dependencies","resourceLoaders","mainClass","classLoader","fallbackLoader"})
        public ModuleInfo​(java.lang.String name,
                          ModuleLoaderMXBean moduleLoader,
                          java.util.List<DependencyInfo> dependencies,
                          java.util.List<ResourceLoaderInfo> resourceLoaders,
                          java.lang.String mainClass,
                          java.lang.String classLoader,
                          java.lang.String fallbackLoader)
        Construct a new instance.
        Parameters:
        name - the module name
        moduleLoader - the module loader
        dependencies - the dependencies list
        resourceLoaders - the resource loaders list
        mainClass - the main class name
        classLoader - the class loader
        fallbackLoader - the fallback loader
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the corresponding module.
        Returns:
        the name of the corresponding module
      • getModuleLoader

        public ModuleLoaderMXBean getModuleLoader()
        Get the associated module loader MXBean.
        Returns:
        the associated module loader MXBean
      • getDependencies

        public java.util.List<DependencyInfo> getDependencies()
        Get the dependency information list.
        Returns:
        the dependency information list
      • getResourceLoaders

        public java.util.List<ResourceLoaderInfo> getResourceLoaders()
        Get the resource loader information list.
        Returns:
        the resource loader information list
      • getMainClass

        public java.lang.String getMainClass()
        Get the main class name.
        Returns:
        the main class name
      • getClassLoader

        public java.lang.String getClassLoader()
        Get the class loader (as a string).
        Returns:
        the class loader (as a string)
      • getFallbackLoader

        public java.lang.String getFallbackLoader()
        Get the fallback loader (as a string).
        Returns:
        the fallback loader (as a string)