Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Supplier (0.25 sec)

  1. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLog.java

        @Override
        public void debug(Throwable error) {
            logger.debug("", error);
        }
    
        @Override
        public void debug(Supplier<String> content) {
            if (isDebugEnabled()) {
                logger.debug(content.get());
            }
        }
    
        @Override
        public void debug(Supplier<String> content, Throwable error) {
            if (isDebugEnabled()) {
                logger.debug(content.get(), error);
            }
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

            public int hashCode() {
                return hash;
            }
        }
    
        static class CachingSupplier<T> implements Supplier<T> {
            final Supplier<T> supplier;
            volatile Object value;
    
            CachingSupplier(Supplier<T> supplier) {
                this.supplier = supplier;
            }
    
            @Override
            @SuppressWarnings({"unchecked", "checkstyle:InnerAssignment"})
            public T get() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/RepositorySystemSupplier.java

     * memorized and kept as long as supplier instance is kept open.
     * <p>
     * This class is not thread safe and must be used from one thread only, while the constructed {@link RepositorySystem}
     * is thread safe.
     * <p>
     * Important: Given the instance of supplier memorizes the supplier {@link RepositorySystem} instance it supplies,
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 26 13:10:42 GMT 2024
    - 43.7K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Log.java

         * The stack trace for this exception will be output when this error level is enabled.
         *
         * @param error
         */
        void debug(Throwable error);
    
        void debug(Supplier<String> content);
    
        void debug(Supplier<String> content, Throwable error);
    
        /**
         * @return true if the <b>info</b> error level is enabled
         */
        boolean isInfoEnabled();
    
        /**
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 23:54:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java

                    }
                }
                return model;
            }
    
            public Model computeIfAbsent(Supplier<Model> supplier) {
                if (!set) {
                    synchronized (this) {
                        if (!set) {
                            this.set = true;
                            this.model = supplier.get();
                            this.notifyAll();
                        }
                    }
                }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java

        }
    
        public PluginDescriptor get(Key cacheKey) {
            return clone(descriptors.get(cacheKey));
        }
    
        @Override
        public PluginDescriptor get(Key key, PluginDescriptorSupplier supplier)
                throws PluginDescriptorParsingException, PluginResolutionException, InvalidPluginDescriptorException {
    
            try {
                PluginDescriptor desc = descriptors.get(key);
                if (desc == null) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Feb 28 23:31:49 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenSessionBuilderSupplier.java

    import org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy;
    
    import static java.util.Objects.requireNonNull;
    
    /**
     * A simple {@link Supplier} of {@link SessionBuilder} instances, that on each call supplies newly
     * constructed instance. To create session out of builder, use {@link SessionBuilder#build()}. For proper closing
     * of sessions, use {@link CloseableSession#close()} method on built instance(s).
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/transformation/impl/TransformedArtifact.java

    import java.nio.file.Path;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.Objects;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.function.Supplier;
    
    import org.apache.maven.artifact.DefaultArtifact;
    import org.apache.maven.internal.transformation.TransformationFailedException;
    import org.apache.maven.model.building.ModelBuildingException;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

                @Nullable
                @Override
                @SuppressWarnings("unchecked")
                public <T> T computeIfAbsent(@Nonnull Key<T> key, @Nonnull Supplier<T> supplier) {
                    return (T) data.computeIfAbsent(key, (Supplier<Object>) supplier);
                }
            };
        }
    
        @Nonnull
        @Override
        public LocalRepository getLocalRepository() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Apr 23 12:55:57 GMT 2024
    - 27.3K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

            throw (T) t; // rely on vacuous cast
        }
    
        static class LazyMap<K, V> extends AbstractMap<K, V> {
            private final Supplier<Map<K, V>> supplier;
            private volatile Map<K, V> delegate;
    
            LazyMap(Supplier<Map<K, V>> supplier) {
                this.supplier = supplier;
            }
    
            @Override
            public Set<Entry<K, V>> entrySet() {
                if (delegate == null) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 55.2K bytes
    - Viewed (0)
Back to top