Class TypePool.ClassLoading

    • Field Detail

      • BOOTSTRAP_CLASS_LOADER

        private static final java.lang.ClassLoader BOOTSTRAP_CLASS_LOADER
        Type-safe representation of the bootstrap class loader which is null.
      • classLoader

        private final java.lang.ClassLoader classLoader
        The class loader to query.
    • Constructor Detail

      • ClassLoading

        public ClassLoading​(TypePool.CacheProvider cacheProvider,
                            TypePool parent,
                            java.lang.ClassLoader classLoader)
        Creates a class loadings type pool.
        Parameters:
        cacheProvider - The cache provider to use.
        parent - The parent type pool.
        classLoader - The class loader to use for locating files.
    • Method Detail

      • of

        public static TypePool of​(java.lang.ClassLoader classLoader)
        Returns a type pool that attempts type descriptions by loadings types from the given class loader.
        Parameters:
        classLoader - The class loader to use.
        Returns:
        An class loading type pool.
      • of

        public static TypePool of​(java.lang.ClassLoader classLoader,
                                  TypePool parent)
        Returns a type pool that attempts type descriptions by loadings types from the given class loader.
        Parameters:
        classLoader - The class loader to use.
        parent - The parent type pool to use.
        Returns:
        An class loading type pool.
      • ofSystemLoader

        public static TypePool ofSystemLoader()
        Returns a type pool that attempts type descriptions by loadings types from the system class loader.
        Returns:
        An class loading type pool for the system class loader.
      • ofPlatformLoader

        public static TypePool ofPlatformLoader()
        Returns a type pool that attempts type descriptions by loadings types from the platform class loader. If the current VM is Java 8 or older, the extension class loader is represented instead.
        Returns:
        An class loading type pool for the system class loader.
      • ofBootLoader

        public static TypePool ofBootLoader()
        Returns a type pool that attempts type descriptions by loadings types from the bootstrap class loader.
        Returns:
        An class loading type pool for the bootstrap class loader.