Class GraalVMReachabilityMetadataService

  • All Implemented Interfaces:
    org.graalvm.reachability.GraalVMReachabilityMetadataRepository, org.gradle.api.services.BuildService<GraalVMReachabilityMetadataService.Params>

    public abstract class GraalVMReachabilityMetadataService
    extends java.lang.Object
    implements org.gradle.api.services.BuildService<GraalVMReachabilityMetadataService.Params>, org.graalvm.reachability.GraalVMReachabilityMetadataRepository
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.lang.String gavCoordinates)
      Returns a list of configuration directories for the specified artifact.
      java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.util.Collection<java.lang.String> modules)
      Returns the set of configuration directories for all the modules supplied as an argument.
      java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.util.function.Consumer<? super org.graalvm.reachability.Query> queryBuilder)
      Performs a generic query on the repository, returning a list of configurations.
      java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.util.Set<java.lang.String> excludedModules, java.util.Map<java.lang.String,​java.lang.String> forcedVersions, org.gradle.api.artifacts.ModuleVersionIdentifier moduleVersion)  
      protected abstract org.gradle.api.file.ArchiveOperations getArchiveOperations()  
      protected abstract org.gradle.api.file.FileSystemOperations getFileOperations()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.gradle.api.services.BuildService

        getParameters
    • Constructor Detail

      • GraalVMReachabilityMetadataService

        public GraalVMReachabilityMetadataService()
                                           throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
    • Method Detail

      • getArchiveOperations

        @Inject
        protected abstract org.gradle.api.file.ArchiveOperations getArchiveOperations()
      • getFileOperations

        @Inject
        protected abstract org.gradle.api.file.FileSystemOperations getFileOperations()
      • findConfigurationsFor

        public java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.util.function.Consumer<? super org.graalvm.reachability.Query> queryBuilder)
        Performs a generic query on the repository, returning a list of configurations. The query may be parameterized with a number of artifacts, and can be used to refine behavior, for example if a configuration directory isn't available for a particular artifact version.
        Specified by:
        findConfigurationsFor in interface org.graalvm.reachability.GraalVMReachabilityMetadataRepository
        Parameters:
        queryBuilder - the query builder
        Returns:
        the set of configurations matching the query
      • findConfigurationsFor

        public java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.lang.String gavCoordinates)
        Returns a list of configuration directories for the specified artifact. There may be more than one configuration directory for a given artifact, but the list may also be empty if the repository doesn't contain any. Never null.
        Specified by:
        findConfigurationsFor in interface org.graalvm.reachability.GraalVMReachabilityMetadataRepository
        Parameters:
        gavCoordinates - the artifact GAV coordinates (group:artifact:version)
        Returns:
        a list of configurations
      • findConfigurationsFor

        public java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.util.Collection<java.lang.String> modules)
        Returns the set of configuration directories for all the modules supplied as an argument.
        Specified by:
        findConfigurationsFor in interface org.graalvm.reachability.GraalVMReachabilityMetadataRepository
        Parameters:
        modules - the list of modules
        Returns:
        the set of configurations
      • findConfigurationsFor

        public java.util.Set<org.graalvm.reachability.DirectoryConfiguration> findConfigurationsFor​(java.util.Set<java.lang.String> excludedModules,
                                                                                                    java.util.Map<java.lang.String,​java.lang.String> forcedVersions,
                                                                                                    org.gradle.api.artifacts.ModuleVersionIdentifier moduleVersion)