Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 351 for Singleton (0.06 seconds)

  1. api/maven-api-core/src/test/java/org/apache/maven/api/MonotonicClockTest.java

    import static org.junit.jupiter.api.Assertions.assertSame;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    class MonotonicClockTest {
    
        @Test
        @DisplayName("MonotonicClock singleton instance should always return the same instance")
        void testSingletonInstance() {
            MonotonicClock clock1 = MonotonicClock.get();
            MonotonicClock clock2 = MonotonicClock.get();
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jan 15 06:28:29 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

      }
    
      @SuppressWarnings("CheckReturnValue") // these calls to skip always return 0
      public void testSkip() throws Exception {
        MultiInputStream multi =
            new MultiInputStream(
                Collections.singleton(
                        new ByteSource() {
                          @Override
                          public InputStream openStream() {
                            return new ByteArrayInputStream(newPreFilledByteArray(0, 50)) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

    import java.util.function.Predicate;
    import java.util.stream.Collectors;
    
    import org.apache.maven.api.Constants;
    import org.apache.maven.api.di.Inject;
    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.di.Singleton;
    import org.apache.maven.api.feature.Features;
    import org.apache.maven.api.services.TypeRegistry;
    import org.apache.maven.api.xml.XmlNode;
    import org.apache.maven.eventspy.internal.EventSpyDispatcher;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Jul 17 05:56:35 GMT 2025
    - 25.8K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

       */
      protected IteratorTester(
          int steps,
          Iterable<? extends IteratorFeature> features,
          Iterable<E> expectedElements,
          KnownOrder knownOrder) {
        super(steps, Collections.singleton(null), features, expectedElements, knownOrder, 0);
      }
    
      @Override
      protected final Iterable<Stimulus<E, Iterator<E>>> getStimulusValues() {
        return iteratorStimuli();
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategy.java

    import eu.maveniverse.domtrip.maven.MavenPomElements;
    import org.apache.maven.api.cli.mvnup.UpgradeOptions;
    import org.apache.maven.api.di.Named;
    import org.apache.maven.api.di.Priority;
    import org.apache.maven.api.di.Singleton;
    import org.apache.maven.cling.invoker.mvnup.UpgradeContext;
    
    import static eu.maveniverse.domtrip.maven.MavenPomElements.Attributes.COMBINE_APPEND;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

        }
    
        private ArtifactResolutionResult collect(ArtifactSpec a) throws ArtifactResolutionException {
            return artifactCollector.collect(
                    Collections.singleton(a.artifact),
                    projectArtifact.artifact,
                    null,
                    null,
                    null,
                    source,
                    null,
                    Collections.emptyList(),
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 43K bytes
    - Click Count (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.project.artifact;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.File;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.LinkedHashMap;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 12:03:50 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing.google;
    
    import static com.google.common.collect.Maps.immutableEntry;
    import static java.util.Collections.singleton;
    import static java.util.Collections.unmodifiableList;
    import static junit.framework.TestCase.assertEquals;
    import static junit.framework.TestCase.assertTrue;
    import static junit.framework.TestCase.fail;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact.repository.metadata;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    import javax.xml.stream.XMLStreamException;
    
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  10. impl/maven-core/src/site/apt/getting-to-container-configured-mojos.apt

      of most plexus components has been to avoid instance state like the plague.
      With the current parameter passing model of mojos, this will not be possible,
      particularly when we move mojos to a singleton instantiation model, and then
      run a reactorized project...the successive calls may leave behind configuration
      artifacts from invocation to invocation.
    
    Maven Modifications
    
    * DefaultPluginManager
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.1K bytes
    - Click Count (0)
Back to Top