类 ClassLoaderServiceImpl

    • 构造器详细资料

      • ClassLoaderServiceImpl

        public ClassLoaderServiceImpl()
        Constructs a ClassLoaderServiceImpl with standard set-up
      • ClassLoaderServiceImpl

        public ClassLoaderServiceImpl​(ClassLoader classLoader)
        Constructs a ClassLoaderServiceImpl with the given ClassLoader
        参数:
        classLoader - The ClassLoader to use
      • ClassLoaderServiceImpl

        public ClassLoaderServiceImpl​(Collection<ClassLoader> providedClassLoaders,
                                      TcclLookupPrecedence lookupPrecedence)
        Constructs a ClassLoaderServiceImpl with the given ClassLoader instances
        参数:
        providedClassLoaders - The ClassLoader instances to use
        lookupPrecedence - The lookup precedence of the thread context ClassLoader
    • 方法详细资料

      • fromConfigSettings

        @Deprecated
        public static ClassLoaderServiceImpl fromConfigSettings​(Map configValues)
        已过时。
        No longer used/supported!
        No longer used/supported!
        参数:
        configValues - The config values
        返回:
        The built service
      • classForName

        public <T> Class<T> classForName​(String className)
        从接口复制的说明: ClassLoaderService
        Locate a class by name.
        指定者:
        classForName 在接口中 ClassLoaderService
        类型参数:
        T - The returned class type.
        参数:
        className - The name of the class to locate
        返回:
        The class reference
      • locateResource

        public URL locateResource​(String name)
        从接口复制的说明: ClassLoaderService
        Locate a resource by name (classpath lookup).
        指定者:
        locateResource 在接口中 ClassLoaderService
        参数:
        name - The resource name.
        返回:
        The located URL; may return null to indicate the resource was not found
      • locateResourceStream

        public InputStream locateResourceStream​(String name)
        从接口复制的说明: ClassLoaderService
        Locate a resource by name (classpath lookup) and gets its stream.
        指定者:
        locateResourceStream 在接口中 ClassLoaderService
        参数:
        name - The resource name.
        返回:
        The stream of the located resource; may return null to indicate the resource was not found
      • locateResources

        public List<URL> locateResources​(String name)
        从接口复制的说明: ClassLoaderService
        Locate a series of resource by name (classpath lookup).
        指定者:
        locateResources 在接口中 ClassLoaderService
        参数:
        name - The resource name.
        返回:
        The list of URL matching; may return null to indicate the resource was not found
      • loadJavaServices

        public <S> Collection<S> loadJavaServices​(Class<S> serviceContract)
        从接口复制的说明: ClassLoaderService
        Discovers and instantiates implementations of the named service contract.

        NOTE : the terms service here is used differently than Service. Instead here we are talking about services as defined by ServiceLoader.

        指定者:
        loadJavaServices 在接口中 ClassLoaderService
        类型参数:
        S - The type of the service contract
        参数:
        serviceContract - The java type defining the service contract
        返回:
        The ordered set of discovered services.
      • stop

        public void stop()
        从接口复制的说明: Stoppable
        Stop phase notification
        指定者:
        stop 在接口中 Stoppable