Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for ServiceLoader (0.04 sec)

  1. api/maven-api-model/src/main/java/org/apache/maven/api/model/ModelObjectProcessor.java

                @Override
                public <T> T process(T object) {
                    return object;
                }
            }
    
            ServiceLoader<ModelObjectProcessor> loader = ServiceLoader.load(ModelObjectProcessor.class);
            for (ModelObjectProcessor processor : loader) {
                return processor;
            }
            return new NoOpProcessor();
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:45:25 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelper.java

     */
    public final class CIDetectorHelper {
        private CIDetectorHelper() {}
    
        public static List<CIInfo> detectCI() {
            ArrayList<CIInfo> result = ServiceLoader.load(CIDetector.class).stream()
                    .map(ServiceLoader.Provider::get)
                    .map(CIDetector::detectCI)
                    .filter(Optional::isPresent)
                    .map(Optional::get)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Apr 13 18:50:07 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CliUtils.java

     */
    package org.apache.maven.cling.invoker;
    
    import java.nio.file.Path;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Optional;
    import java.util.Properties;
    import java.util.ServiceLoader;
    import java.util.function.UnaryOperator;
    
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    import org.apache.maven.api.services.Interpolator;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Oct 13 18:30:29 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/PatternCompiler.java

    /**
     * Pluggable interface for compiling a regex pattern. By default this package uses the {@code
     * java.util.regex} library, but an alternate implementation can be supplied using the {@link
     * java.util.ServiceLoader} mechanism.
     */
    @GwtIncompatible
    interface PatternCompiler {
      /**
       * Compiles the given pattern.
       *
       * @throws IllegalArgumentException if the pattern is invalid
       */
      @RestrictedApi(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/PatternCompiler.java

    /**
     * Pluggable interface for compiling a regex pattern. By default this package uses the {@code
     * java.util.regex} library, but an alternate implementation can be supplied using the {@link
     * java.util.ServiceLoader} mechanism.
     */
    @GwtIncompatible
    interface PatternCompiler {
      /**
       * Compiles the given pattern.
       *
       * @throws IllegalArgumentException if the pattern is invalid
       */
      @RestrictedApi(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ProjectScopeProvider.java

     * beyond the standard {@link ProjectScope#MAIN} and {@link ProjectScope#TEST} scopes.
     * Implementations of this interface will be discovered through the Java ServiceLoader mechanism
     * and their provided project scopes will be available throughout the Maven build process.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomProjectScopeProvider implements ProjectScopeProvider {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 2K bytes
    - Viewed (0)
  7. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/LanguageProvider.java

     * <p>
     * This interface allows plugins and extensions to define and register additional programming languages
     * beyond the standard ones provided by Maven. Implementations of this interface will be discovered
     * through the Java ServiceLoader mechanism and their provided languages will be available
     * throughout the Maven build process.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomLanguageProvider implements LanguageProvider {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlService.java

    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamReader;
    
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.Reader;
    import java.io.Writer;
    import java.util.ServiceLoader;
    
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * Comprehensive service interface for XML operations including node creation,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ExtensibleEnumProvider.java

     * to various categories like languages, scopes, and packaging types. This interface is the
     * base for all providers that register such extensions.
     * <p>
     * Implementations of this interface are discovered through the Java ServiceLoader mechanism.
     * Each implementation must be registered in a {@code META-INF/services/} file corresponding
     * to the specific provider interface being implemented.
     * <p>
     * Example implementation for a custom language provider:
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelTransformer.java

     *   <li>Effective model - The fully processed model with all interpolation and inheritance applied</li>
     * </ol>
     * <p>
     * Implementations of this interface will be discovered through the Java ServiceLoader mechanism
     * and will be called in sequence during model building.
     * <p>
     * Example usage:
     * <pre>
     * public class CustomModelTransformer implements ModelTransformer {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top