Class TypePool.ClassLoading

    • 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.
      • ofBootPath

        public static TypePool ofBootPath()
        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.
      • ofClassPath

        public static TypePool ofClassPath()
        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.